/**
 * マイページ共通（layout.php 経由の全画面）
 * 元: HTML/app-mypage*.html の共通 <style>
 */
body {
    background: #fbfbfb;
    font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
    color: #3c4043;
}

.otoq-content {
    padding: 0 0 60px;
}

/* ── Breadcrumb ── */
.otoq-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9CA3AF;
    margin-bottom: 20px;
    min-width: 0;
}
.otoq-breadcrumb a {
    color: #9CA3AF;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.otoq-breadcrumb a:hover {
    color: #2e5d4b;
}
.otoq-breadcrumb .sep {
    color: #e4e6ef;
    flex-shrink: 0;
}
.otoq-breadcrumb .current {
    color: #3c4043;
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Notice banner ── */
.delivery-notice {
    background: #2e5d4b;
    color: #fff;
    border-radius: 4px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 13px;
}
.delivery-notice strong {
    font-weight: 700;
}
.delivery-notice .deadline {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}
.delivery-notice .badge-time {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 14px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    color: #fff;
}
.benefit-notice-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
@media (min-width: 768px) {
    .benefit-notice-row {
        flex-direction: row;
    }
    .benefit-notice-row .delivery-notice {
        flex: 1;
        margin-bottom: 0;
    }
}
.delivery-notice--dinner {
    background: #3d4f6b;
}
.benefit-notice-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    opacity: 0.9;
}

/* ── Card base ── */
.mypage-card {
    background: #fff;
    border: 1px solid #e4e6ef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}
.card-header {
    padding: 14px 20px;
    border-bottom: 1px solid #e4e6ef;
    font-size: 12px;
    font-weight: 600;
    color: #1e2022;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header a {
    font-size: 12px;
    color: #2e5d4b;
    text-decoration: none;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* ── Settings menu ── */
.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #e4e6ef;
    text-decoration: none;
    color: #3c4043;
    font-size: 13px;
    transition: background 0.1s;
}
.settings-item:last-child {
    border-bottom: none;
}
.settings-item:hover {
    background: #f4f5f8;
    color: #1e2022;
    text-decoration: none;
}
.settings-item.active {
    background: #f4f5f8;
    color: #1e2022;
    font-weight: 600;
}
.settings-item.active .settings-icon {
    border-color: #cfd4df;
    background: #eef1f6;
}
.settings-item.danger {
    color: #dc3545;
}
.settings-item.danger:hover {
    background: #fff5f5;
}
.settings-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.settings-icon {
    width: 32px;
    height: 32px;
    background: #fbfbfb;
    border: 1px solid #e4e6ef;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #4c5667;
    flex-shrink: 0;
}
.settings-item.danger .settings-icon {
    color: #dc3545;
    border-color: #fce8ea;
    background: #fff5f5;
}
.settings-chevron {
    color: #c1c3ce;
    font-size: 12px;
}

/* ── Mobile Bottom Nav ── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e4e6ef;
    z-index: 300;
}
.nav-item {
    flex: 1;
    text-align: center;
    padding: 10px 0 8px;
    text-decoration: none;
    color: #c1c3ce;
    font-size: 10px;
    font-weight: 500;
}
.nav-item.active {
    color: #1e2022;
}
.nav-item.active .nav-icon-active {
    width: 40px;
    height: 40px;
    background: #1e2022;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -2px auto 4px;
}
.nav-item.active .nav-icon-active i {
    font-size: 17px;
    color: #fff;
    margin: 0;
}
.nav-item i {
    display: block;
    font-size: 19px;
    margin-bottom: 3px;
}

/* Status alerts (registration / card) */
.mypage-alert {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.mypage-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}
.mypage-alert-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}
.mypage-alert-cta {
    display: inline-block;
    margin-left: 8px;
    font-weight: 700;
    color: #0d6efd;
    text-decoration: underline;
}
.approval-pending-notice-wrap {
    padding-top: 16px;
}
.approval-pending-notice {
    margin-bottom: 0;
}
.mypage-order-nudge-wrap {
    padding-top: 16px;
}
.mypage-order-nudge-wrap .container {
    padding-left: 15px;
    padding-right: 15px;
}
.delivery-notice--order-nudge {
    margin-bottom: 10px;
}
.delivery-notice--order-nudge.is-blocked {
    background: #5c4a3a;
}
.delivery-notice--order-nudge.is-complete {
    background: #2f5f7a;
}
.delivery-notice--order-nudge .badge-time {
    text-decoration: none;
}
.delivery-notice--order-nudge a.badge-time:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
body.has-order-nudge-blocked .delivery-notice:not(.delivery-notice--order-nudge) {
    display: none;
}
.breadcrumb-disabled {
    color: #9ca3af;
    cursor: not-allowed;
}
.mobile-bottom-nav .nav-item-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.settings-drawer-overlay {
    display: none;
}

.settings-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 360px);
    height: 100vh;
    background: #fff;
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
}

.settings-drawer-panel.is-open {
    transform: translateX(0);
}

.settings-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e4e6ef;
    font-size: 14px;
}

.settings-drawer-close {
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    color: #6b7280;
}

.settings-drawer-content {
    overflow-y: auto;
    padding: 0;
}

.swal2-popup {
    width: 30em !important;
}
.swal2-title {
    font-size: 1.5em !important;
}
.swal2-html-container {
    font-size: 1em !important;
}

@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: flex;
    }
    .settings-menu-desktop {
        display: block;
    }
    .settings-drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.38);
        z-index: 1190;
        display: block;
    }
    .settings-drawer-open {
        overflow: hidden;
    }
    body {
        padding-bottom: 70px;
    }
    .otoq-content {
        padding: 0 0 20px;
    }
    .mypage-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .settings-menu-drawer {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 0;
    }
    .swal2-popup {
        width: 25em !important;
    }
    .swal2-title {
        font-size: 1.2em !important;
    }
    .swal2-html-container {
        font-size: 0.9em !important;
    }
}

@media (min-width: 992px) {
    .settings-drawer-panel,
    .settings-drawer-overlay {
        display: none !important;
    }
    .settings-menu-drawer {
        display: none;
    }
}
