/* Account surfaces inherit the approved RoamingMate layout and typography. */
.rm-signout-page { max-width: 760px; margin-inline: auto; }
.rm-signout-page [hidden] { display: none !important; }
.rm-signout-notice { color: var(--rm-home-text-secondary); font-size: var(--rm-type-body); line-height: 1.8; overflow-wrap: anywhere; }
.rm-signout-notice :is(h1,h2,h3,h4,h5,h6) { margin: 0 0 16px; color: var(--rm-home-text); font-size: var(--rm-type-section-title); font-weight: 700; line-height: 1.5; }
.rm-signout-notice p { margin: 16px 0 8px; }
.rm-signout-notice :is(ul,ol) { margin: 12px 0 24px; padding-left: 22px; list-style: revert; }
.rm-signout-notice li + li { margin-top: 12px; }
.rm-signout-notice .fw-semibold { font-weight: 700; }
.rm-signout-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rm-home-border-defined); }
.rm-signout-actions .rm-account-button { min-width: 112px; }
.rm-signout-actions .rm-signout-delete { color: #a32e1a; border-color: #d7aaa2; }
.rm-signout-actions .rm-signout-delete:hover { background: #fff5f3; border-color: #a32e1a; }
.rm-signout-login { margin-top: 24px; color: var(--rm-home-text-secondary); font-size: var(--rm-type-body); line-height: 1.7; }
.rm-signout-login a { margin-left: 8px; color: var(--rm-home-primary-strong); text-decoration: underline; text-underline-offset: 3px; }
.rm-signout-confirm h2 { margin-bottom: 16px; }
body:has(.rm-signout-confirm[open]) { overflow: hidden; }
@media (max-width: 767px) {
    .rm-signout-actions .rm-account-button { flex: 1; min-width: 0; }
}
.rm-account-page { color: var(--rm-home-text); padding: 12px 0 32px; }
.rm-account-heading { margin-bottom: 28px; }
.rm-account-heading h1 { margin: 0; font-size: var(--rm-type-page-title); font-weight: 800; line-height: 1.35; }
.rm-account-heading p { margin-top: 10px; color: var(--rm-home-text-secondary); font-size: var(--rm-type-body); }
.rm-account-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rm-account-section { min-width: 0; padding: 28px; background: #fff; border: 1px solid var(--rm-home-border-defined); border-radius: 18px; }
.rm-account-section h2 { margin: 0 0 8px; font-size: var(--rm-type-section-title); font-weight: 800; }
.rm-account-description { margin: 0; color: var(--rm-home-text-secondary); font-size: var(--rm-type-support); line-height: 1.65; }
.rm-account-field { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--rm-home-border-defined); }
.rm-account-label { display: block; margin-bottom: 10px; font-size: var(--rm-type-body); font-weight: 700; }
.rm-account-label small { margin-left: 6px; color: var(--rm-home-text-secondary); font-size: var(--rm-type-support); font-weight: 400; }
.rm-account-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.rm-account-value { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: var(--rm-type-body); line-height: 1.7; }
.rm-account-button { display: inline-flex; flex-shrink: 0; min-height: 44px; align-items: center; justify-content: center; padding: 9px 16px; border: 1px solid #bfcee3; border-radius: 10px; background: #fff; color: var(--rm-home-primary-strong); font-size: var(--rm-type-body); font-weight: 700; cursor: pointer; text-decoration: none; }
.rm-account-button:hover { background: var(--rm-home-primary-soft); border-color: var(--rm-home-primary); }
.rm-account-button.is-primary { background: var(--rm-home-primary); color: #fff; border-color: var(--rm-home-primary); }
.rm-account-button.is-primary:hover { background: var(--rm-home-primary-strong); }
.rm-account-button:disabled { opacity: .55; cursor: wait; }
.rm-account-editor { display: grid; gap: 12px; }
.rm-account-editor .rm-account-label { margin: 4px 0 -4px; }
.rm-account-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.rm-account-input { width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid #b9c9de; border-radius: 10px; background: #fff; color: var(--rm-home-text); font-size: var(--rm-type-body); }
.rm-account-input::placeholder { color: #6a7383; }
.rm-account-input:focus { border-color: var(--rm-home-primary); }
.rm-account-verification { margin-top: 16px; }
.rm-account-verification > button { justify-self: end; }
.rm-account-timer { margin-left: 12px; color: var(--rm-home-primary-strong); font-variant-numeric: tabular-nums; }
.rm-account-notification { display: flex; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--rm-home-border-defined); }
.rm-account-notification:last-child { padding-bottom: 0; border-bottom: 0; }
.rm-account-notification > div { flex: 1; min-width: 0; }
.rm-account-notification label { font-size: var(--rm-type-body); font-weight: 700; cursor: pointer; }
.rm-account-notification p { margin: 7px 0 0; color: var(--rm-home-text-secondary); font-size: var(--rm-type-support); line-height: 1.65; }
.rm-account-switch { appearance: none; width: 44px; height: 26px; flex: 0 0 44px; margin: 0; border: 1px solid #8795aa; border-radius: 20px; background: #8795aa; cursor: pointer; }
.rm-account-switch::before { content: ''; display: block; width: 20px; height: 20px; margin: 2px; border-radius: 50%; background: #fff; }
.rm-account-switch:checked { border-color: var(--rm-home-primary); background: var(--rm-home-primary); }
.rm-account-switch:checked::before { transform: translateX(18px); }
.rm-account-switch:disabled { opacity: .5; cursor: wait; }
.rm-account-status { margin-bottom: 18px; color: var(--rm-home-text-secondary); font-size: var(--rm-type-body); line-height: 1.6; overflow-wrap: anywhere; }
.rm-account-status:empty { display: none; }
.rm-account-status.is-error { color: #a32e1a; }
.rm-account-status.is-success { color: #087052; }
.rm-account-bottom { padding: 24px 0 0; text-align: right; }
.rm-account-bottom a { display: inline-flex; min-height: 44px; align-items: center; color: var(--rm-home-text-secondary); font-size: var(--rm-type-support); text-decoration: underline; text-underline-offset: 3px; }
.rm-account-page :is(a,button,input):focus-visible, .rm-account-dropdown :is(a,button,input,summary):focus-visible, .rm-account-coupons button:focus-visible { outline: 3px solid #8babec; outline-offset: 3px; }
.rm-account-menu { color: var(--rm-home-text); }
.rm-account-menu h2 { margin: 0 0 16px; font-size: var(--rm-type-section-title); font-weight: 800; }
.rm-account-name { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; font-size: var(--rm-type-card-large); }
.rm-account-name > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.rm-account-chevron { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; margin-right: 4px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.rm-account-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin: 22px 0 8px; padding: 20px 0; border: 1px solid var(--rm-home-border-defined); border-radius: 14px; background: var(--rm-home-primary-soft); }
.rm-account-summary > * { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; padding: 0 8px; color: var(--rm-home-primary-strong); font-size: var(--rm-type-support); }
.rm-account-summary > * + * { border-left: 1px solid #c5d3e8; }
.rm-account-summary > :is(a,button):hover { text-decoration: underline; text-underline-offset: 3px; }
.rm-account-summary strong { font-size: var(--rm-type-card-title); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; max-width: 100%; }
.rm-account-summary small { margin-left: 3px; font-size: var(--rm-type-support); font-weight: 500; }
.rm-account-menu-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 0; font-size: var(--rm-type-body); }
.rm-account-menu-link:hover { color: var(--rm-home-primary-strong); }
.rm-account-menu-link small { display: block; margin-top: 3px; color: var(--rm-home-text-secondary); font-size: var(--rm-type-support); }
.rm-account-menu-links { margin-top: 20px; padding-top: 22px; border-top: 1px solid var(--rm-home-border-defined); }
.rm-account-menu-links h2 { font-size: var(--rm-type-card-title); margin-bottom: 6px; }
.rm-account-logout { margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--rm-home-border-defined); }
.rm-account-logout button { width: 100%; }
.rm-account-menu-page { max-width: 680px; margin: 0 auto; padding: 28px; border: 1px solid var(--rm-home-border-defined); border-radius: 18px; background: #fff; }
.rm-account-dropdown { position: relative; }
.rm-account-dropdown > summary { list-style: none; cursor: pointer; }
.rm-account-dropdown > summary::-webkit-details-marker { display: none; }
.rm-account-dropdown > summary::after { content: ''; width: 7px; height: 7px; margin-left: 6px; border-bottom: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.rm-account-dropdown[open] > summary::after { transform: rotate(225deg); }
.rm-account-popover { position: absolute; top: calc(100% + 12px); right: 0; width: 360px; max-height: calc(100dvh - 120px); padding: 24px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--rm-home-border-defined); border-radius: 18px; background: #fff; box-shadow: 0 18px 42px rgba(28,46,82,.16); z-index: 80; }
.rm-account-popover .rm-account-menu h2 { font-size: var(--rm-type-card-title); }
.rm-account-coupons { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 24px; border: 1px solid var(--rm-home-border-defined); border-radius: 18px; color: var(--rm-home-text); background: #fff; overflow-y: auto; }
.rm-account-coupons::backdrop { background: rgba(20,29,47,.45); }
.rm-account-coupons header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rm-account-coupons h2 { font-size: var(--rm-type-section-title); font-weight: 800; }
.rm-account-coupon { padding: 20px 0; border-top: 1px dashed #bfcee3; }
.rm-account-coupon h3 { margin-bottom: 8px; font-size: var(--rm-type-card-title); font-weight: 700; }
.rm-account-coupon p { color: var(--rm-home-text-secondary); font-size: var(--rm-type-body); line-height: 1.7; }
.rm-coupon-page { max-width: 760px; margin-inline: auto; }
.rm-coupon-page [data-coupon-list] { min-height: 100px; color: var(--rm-home-text-secondary); font-size: var(--rm-type-body); line-height: 1.7; overflow-wrap: anywhere; }
.rm-account-coupon { overflow-wrap: anywhere; }
.rm-account-coupon:first-child { padding-top: 0; border-top: 0; }
.rm-account-coupon:last-child { padding-bottom: 0; }
[data-coupon-list] > .rm-account-button { display: flex; margin-top: 16px; }
@media (max-width: 900px) { .rm-account-columns { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
    .rm-account-page { padding-top: 0; }
    .rm-account-heading { margin-bottom: 20px; }
    .rm-account-section { padding: 20px; border-radius: 16px; }
    .rm-account-columns { gap: 18px; }
    .rm-account-field { margin-top: 20px; padding-top: 18px; }
    .rm-account-input { font-size: 16px; } /* Prevent iOS form-focus zoom. */
    .rm-account-menu-page { padding: 20px; border-radius: 16px; }
    .rm-account-notification { gap: 14px; }
}
