/* Use the existing Riode palette, typography and 992px desktop breakpoint. */
.session-exit { display: inline-flex; align-items: center; gap: .8rem; min-height: 44px; font-weight: 600; line-height: 1.5; }
.session-exit:focus-visible, .account-layout a:focus-visible, .account-layout button:focus-visible { outline: 2px solid #2662cc; outline-offset: 3px; }
.header-top .session-exit { margin-left: 1.6rem; font-size: 1.2rem; }
.impersonation-notice { background: #f0f4ff; color: #222; border-bottom: 1px solid #eee; }
.impersonation-notice .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 2rem; padding-top: .8rem; padding-bottom: .8rem; }
.impersonation-notice .session-exit { color: #2662cc; text-decoration: underline; }

.account-layout { padding-top: 2.4rem; }
.account-sidebar-inner { padding: 1.8rem; border: 1px solid #eee; border-radius: .4rem; background: #fff; }
.account-sidebar .account-nav-header h5 { font-size: 1.6rem; }
.account-sidebar .dashboard-nav { display: flex; flex-direction: column; }
.account-sidebar .dashboard-nav > li { width: 100%; margin: 0; border: 0; }
.account-sidebar .dashboard-nav > li a { min-height: 48px; white-space: normal; line-height: 1.5; border: 0; text-align: left; }
.account-sidebar .dashboard-nav .account-exit { border-top: 1px solid #eee; margin-top: 1.6rem; padding-top: .8rem; }
.account-menu-toggle { width: 100%; min-height: 48px; align-items: center; gap: 1rem; margin-bottom: 2rem; text-transform: none; }
.account-menu-toggle span { flex: 1; text-align: left; }
.account-menu-backdrop[hidden] { display: none; }
.account-menu-close { min-height: 44px; width: 100%; margin-bottom: 1rem; gap: 1rem; }
.account-layout .account-page { margin-top: 0 !important; padding: 2.4rem; border: 1px solid #eee; border-radius: .4rem; background: #fff; }
.account-layout .page-title { font-size: 2.4rem; line-height: 1.3; text-align: left; }
.account-layout .form-control { min-height: 44px; }
.account-layout .col-form-label { font-weight: 500; color: #333; }
.account-layout .account-section + .account-section { margin-top: 2rem; }
.account-layout .btn { min-height: 44px; white-space: normal; }
.account-layout .card-address { border: 1px solid #eee; border-radius: .4rem; box-shadow: none; }
.account-layout .card-address .card-body { display: flex; flex-direction: column; padding: 2rem; }
.account-layout .card-address address { font-style: normal; line-height: 1.8; overflow-wrap: anywhere; }
.account-layout .card-address .card-title { font-size: 1.6rem; line-height: 1.6; }
.address-details { margin: 0 0 2rem; font-size: 1.3rem; }
.address-details > div { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 1.5fr); gap: 1rem; padding: .6rem 0; border-top: 1px solid #eee; }
.address-details dt { font-weight: 500; color: #666; }
.address-details dd { margin: 0; color: #222; white-space: pre-line; overflow-wrap: anywhere; }
.address-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: auto; }
.address-actions .btn { flex: 1; }
.account-layout .order-table td { padding: 1.6rem 1rem; }
.account-layout .order-table .badge { color: #333; background: #f0f4ff; white-space: normal; line-height: 1.4; }

.product-option-group { display: block; min-width: 0; width: 100%; padding: 0 0 2rem; margin: 0 0 2rem; border: 0; border-bottom: 1px solid #eee; }
.product-option-group[hidden] { display: none; }
.product-option-group legend { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; width: 100%; margin: 0 0 1rem; padding: 0; font-size: 1.5rem; font-weight: 600; line-height: 1.5; color: #222; }
.option-requirement { font-size: 1.1rem; color: #666; font-weight: 400; background: #f8f8f8; padding: .2rem .6rem; border-radius: .3rem; }
.product-option-group .product-form-group { display: block; width: 100%; }
.product-option-group .text-prompt, .product-option-group .attribute-description { margin-bottom: 1rem; line-height: 1.6; }
.product-option-group .attribute-description p:last-child { margin-bottom: 0; }
.product-option-group .form-control { width: 100%; max-width: none; min-height: 48px; font-size: 1.4rem; }
.product-option-list { display: grid; gap: .8rem; width: 100%; }
.product-option { position: relative; min-width: 0; }
.product-option-input { position: absolute; top: 50%; left: 1.4rem; z-index: 1; width: 18px; height: 18px; margin: -9px 0 0; opacity: 1; appearance: auto; accent-color: #2662cc; cursor: pointer; }
.product-option-group .product-option-label { display: flex; align-items: center; gap: 1rem; width: 100%; min-height: 52px; margin: 0; padding: 1.2rem 1.4rem 1.2rem 4.4rem; border: 1px solid #ddd; border-radius: .4rem; background: #fff; color: #333; font-size: 1.3rem; font-weight: 400; text-transform: none; text-align: left; line-height: 1.5; cursor: pointer; transition: border-color .15s, background .15s; }
.product-option-label::before, .product-option-label::after { content: none !important; }
.option-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.option-price { flex-shrink: 0; font-weight: 600; font-size: 1.3rem; color: #222; }
.product-option-input:checked + .product-option-label { border-color: #2662cc; background: #f0f4ff; box-shadow: inset 0 0 0 1px #2662cc; }
.product-option-input:focus-visible + .product-option-label { outline: 2px solid #2662cc; outline-offset: 3px; }
.product-option-input:disabled { cursor: not-allowed; }
.product-option-input:disabled + .product-option-label { opacity: .6; cursor: not-allowed; }
.product-option-label:hover { border-color: #2662cc; }
.option-swatch { width: 32px; height: 32px; border: 1px solid #ddd; border-radius: .3rem; object-fit: cover; flex-shrink: 0; }
.product-specifications li { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr); gap: 1.6rem; padding: 1.2rem; border-bottom: 1px solid #eee; }
.product-specifications li:nth-child(odd) { background: #f8f8f8; }
.product-specifications li label, .product-specifications li p { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 991px) {
    .account-layout .main-content-wrap { display: flex; flex-direction: column; }
    .account-sidebar { width: 100%; margin-bottom: 2rem; }
    .account-sidebar[hidden] { display: none; }
    body.account-drawer-open { overflow: hidden; }
    .account-menu-backdrop { position: fixed; inset: 0; z-index: 1100; background: rgba(0, 0, 0, .45); }
    .account-sidebar.account-drawer-ready { position: fixed; inset: 0 auto 0 0; z-index: 1101; width: min(34rem, calc(100vw - 4.8rem)); max-width: none; height: 100vh; height: 100dvh; margin: 0; padding: 1.6rem; padding-top: max(1.6rem, env(safe-area-inset-top)); padding-bottom: max(1.6rem, env(safe-area-inset-bottom)); background: #fff; overflow-y: auto; overscroll-behavior: contain; box-shadow: 6px 0 24px rgba(0, 0, 0, .15); animation: account-drawer-enter .2s ease-out; }
    .account-drawer-ready .account-sidebar-inner { border: 0; padding: 0; }
    .account-drawer-ready .account-menu-close { justify-content: flex-end; border: 0; padding-right: 0; text-transform: none; }
    .account-menu-toggle { display: flex; }
    .account-layout .main-content { max-width: 100%; }
    .account-layout .account-page { padding: 1.6rem; }
    .account-layout .page-title { font-size: 2rem; }
}
@keyframes account-drawer-enter {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
@media (max-width: 575px) {
    .account-layout .order-table, .account-layout .order-table tbody, .account-layout .order-table tr, .account-layout .order-table td { display: block; width: 100%; }
    .account-layout .order-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .account-layout .order-table tr { border: 1px solid #eee; border-radius: .4rem; margin-bottom: 1.6rem; padding: 1.2rem; }
    .account-layout .order-table td { padding: .8rem 0; border: 0; text-align: left; }
    .account-layout .order-table td[data-title] { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
    .account-layout .order-table td[data-title]::before { content: attr(data-title); color: #666; font-size: 1.2rem; }
    .account-layout .order-table td:last-child .btn { display: inline-flex; margin: .4rem .4rem 0 0 !important; }
    .product-option-label { flex-wrap: wrap; gap: .4rem 1rem; }
    .option-price { margin-left: auto; }
    .product-specifications li { grid-template-columns: 1fr; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
    .product-option-label { transition: none; }
    .account-sidebar.account-drawer-ready { animation: none; }
}

/* Keep the purchase action readable on phones as well as desktops. */
.product-details .product-qty .btn-cart span { display: inline; }
.product-qty .btn-cart { min-height: 44px; }
