/* Shared account shell retains the storefront header and bottom navigation. */
#accountBack[hidden]{display:none!important}
body:has(#account:not([hidden])):not(.orders-view) #pageTitle{margin-block: .75rem .15rem;font-weight:700;color:#402f36}
#account .intro{margin:0 0 1.2rem}
#account .intro p{font-size:clamp(1.05rem,4.4vw,1.35rem);font-weight:600;margin:0;line-height:1.55;overflow-wrap:anywhere}
#account .profile.card,#account .account-option-card{padding:0 clamp(.75rem,3vw,1.2rem);margin:0 0 .9rem;background:var(--paper);border:1px solid var(--border);border-radius:.9rem}
#account .profile-title{min-height:56px;flex-wrap:wrap;padding:.35rem 0}
#account .profile-title h2{color:var(--wine);font-size:1.075rem}
#account .edit-profile,#account .profile-secondary{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;background:transparent;color:var(--wine);border:1px solid var(--border);border-radius:.55rem;font-weight:600;text-decoration:none}
#account .edit-profile{min-height:44px;padding:.25rem .7rem}
#account .profile-title svg,#account .account-support svg{width:1.12rem;height:1.12rem;flex:none}
#account .contact-rows>div{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);align-items:center;gap:.55rem;min-height:3rem;padding:.55rem 0}
#account .contact-rows dd{margin:0;text-align:left;line-height:1.35;font-size:1rem;min-width:0}
#account .contact-rows dt{font-size:.88rem;line-height:1.4}
#account .account-options{display:block}
#account .account-option{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.58rem;min-height:52px;line-height:1.45;font-weight:600;width:100%;border:0;border-radius:0;padding:.48rem .2rem;background:transparent;color:var(--wine);text-align:start;text-decoration:none}
#account .account-options>*+*{border-top:1px solid #ece2db}
#account .account-row-icon{width:1.38rem;height:1.38rem}
#account .account-row-chevron{width:1.05rem;height:1.05rem}
#account [aria-expanded=true]>.account-row-chevron{transform:rotate(180deg)}
#account .account-support{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;padding-block:0 .85rem}
#account .account-support a{justify-content:center;gap:.4rem;padding:.3rem;line-height:1.4;text-align:center;text-decoration:none;border:1px solid var(--border);border-radius:.55rem;color:var(--wine)}
#account :is(.account-support,.account-settings)[hidden]{display:none!important}
#account .account-settings{margin:0;padding-block:0 .7rem;gap:.3rem}
#account .account-settings :is(a,button){min-height:44px;margin:0;width:100%;padding:.45rem .65rem;border:0;border-radius:.4rem;background:#f8f3ed;color:var(--wine);font:inherit;text-decoration:none}
#account .account-settings .account-delete-link{color:#893e45;background:#fff3f1}
#account #profileForm{display:grid;gap:.58rem;padding-block:.5rem 1rem;border-top:1px solid #eee4df}
#account #profileForm :is(label,button,input){margin:0;min-width:0}
#account #profileForm :is(input,select){font-size:max(16px,1rem)}
#account #profileForm select{width:100%;min-width:0;min-height:46px;border:1px solid #b9a9a1;border-radius:.6rem;background:#fff;color:inherit;font-family:inherit;padding:.45rem .3rem;text-overflow:ellipsis}
#account #profileForm .number{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}
#account select[aria-invalid=true]{border-color:#A23832}
#account #profileForm .number{gap:.5rem}
#account #profileForm small{display:block;color:#705d62;font-size:.82rem;line-height:1.45}
#account .profile-error:not(:empty){display:block;color:#A23832;font-size:.88rem;line-height:1.45}
#account .profile-error:empty{display:none}
#account input[aria-invalid=true]{border-color:#A23832}
#account .profile-actions{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:.5rem}
#account .profile-actions button{padding-inline:.3rem;line-height:1.45;white-space:normal}
#account :is(button,a,input):focus-visible{outline:2px solid #895c68;outline-offset:2px}
body:not(.orders-view) #account{padding-block-end:max(1.25rem,env(safe-area-inset-bottom))}
body.orders-view #account .account-options{display:none!important}
body.orders-view #account .account-option-card{background:transparent;padding:0;border:0}
@media(max-width:19rem){
 #account .contact-rows>div{grid-template-columns:minmax(0,1fr);gap:.15rem}
 #account .contact-rows dd{text-align:start}
}

/* Keep the full LTR reference and copy action together below the right-aligned label. */
#account .booking-identifier{min-width:0;padding-block:0 .65rem;border-block-end:1px solid var(--border)}
#account .booking-identifier h2{margin:0;color:var(--wine);font-size:1rem;line-height:1.4;font-weight:700}
#account .booking-identifier__row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.4rem;align-items:center}
#account .booking-identifier__row bdi{display:block;text-align:right;font:600 clamp(.78rem,3vw,.99rem)/1.45 ui-monospace,monospace;color:var(--wine);overflow-wrap:anywhere;user-select:all}
#account .booking-identifier .copy-order{display:inline-flex;direction:rtl;justify-content:flex-start;align-items:center;gap:.28rem;min-width:5.1rem;min-height:44px;padding:.2rem .25rem;margin:0;background:transparent;color:var(--wine);border:0;font:inherit;font-size:.87rem;font-weight:700;white-space:nowrap}
#account .booking-identifier .copy-order svg{width:1rem;height:1rem;flex:none;order:1}
@media(max-width:350px){#account .booking-identifier__row bdi{font-size:.72rem}}
#account .booking-identifier__status{margin:0;font-size:.85rem;color:#A23832}
#account .booking-identifier__status:empty{margin:0}
#account .booking-services{min-width:0;border-block-end:1px solid var(--border);padding-block-end:.65rem}
#account .booking-services .receipt-line{padding:.65rem 0;align-items:baseline}
#account .booking-services .receipt-line:first-child{border-block-start:0;padding-block-start:0}
#account .booking-services .receipt-line:last-child{padding-block-end:0}
#account .booking-services small{margin:0;font-size:.875rem;line-height:1.4}
#account .booking-receipt-link{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:.45rem .85rem;border:1px solid #d8c8ba;border-radius:10px;text-decoration:none;font-weight:700;color:#5d3045}
#account .booking-identifier .copy-order:focus-visible,#account .booking-receipt-link:focus-visible{outline:2px solid #65374b;outline-offset:3px}
#account .receipt-line>.mb103-money{flex:none;white-space:nowrap}
#account .receipt-line>.mb103-money{display:inline-flex;align-items:center;direction:ltr;gap:.22rem}
#account .receipt-line>.mb103-money .mb103-sar{flex:none;margin:0}
/* Booking details: native account palette, clear address/date fields and actions. */
#account #history .order-detail{
 --detail-line:#e8dcd5;--detail-label:#69535d;--detail-soft:#faf4ef;--detail-wine:#573941;
 padding:clamp(.82rem,4vw,1.4rem);gap:clamp(.7rem,2.9vw,1rem);
 background:var(--paper,#fffdf9);border:1px solid var(--detail-line);
 border-radius:18px;box-shadow:0 6px 22px rgba(76,45,54,.045);overflow:visible;
}
#account .order-detail .booking-identifier,
#account .order-detail .booking-services{
 border:1px solid var(--detail-line);border-radius:12px;padding:.7rem .78rem;background:#fff;
}
#account .order-detail .booking-identifier{background:var(--detail-soft)}
#account .order-detail .booking-identifier h2{font-size:.82rem;color:var(--detail-label);font-weight:600}
#account .order-detail .booking-identifier__row{gap:.6rem}
#account .order-detail .booking-identifier__row bdi{font-size:clamp(.75rem,3.1vw,.98rem);letter-spacing:.015em}
#account .order-detail .booking-identifier .copy-order{
 min-width:0;min-height:44px;width:auto;justify-content:center;padding:.3rem .72rem;
 border:1px solid #dbcac6;border-radius:9px;background:#fff;gap:.42rem;
}
#account .order-detail .booking-identifier__status:empty{display:none}
#account .order-detail .booking-services .receipt-line{gap:.65rem;padding-block:.65rem}
#account .order-detail .booking-services .receipt-line:first-child{padding-block-start:.2rem}
#account .order-detail .booking-services .receipt-line:last-child{padding-block-end:.2rem}
#account .order-detail .receipt-line strong{color:var(--detail-wine);font-size:1.02rem}
#account .order-detail .visit-grid{gap:.55rem}
#account .order-detail .visit-grid>div{
 min-width:0;border:1px solid var(--detail-line);border-radius:10px;padding:.56rem .66rem;background:#fff;
}
#account .order-detail .visit-grid>div:last-child{grid-column:1/-1}
#account .order-detail .visit-grid dt{color:var(--detail-label);font-weight:600}
#account .order-detail .visit-grid dd{margin-block-start:.15rem;color:#402f36;overflow-wrap:anywhere}
#account .order-detail .receipt-payment{
 padding:.62rem .72rem;border:1px solid var(--detail-line);border-radius:10px;background:var(--detail-soft);
}
#account .order-detail .receipt-payment .order-state{
 display:inline-flex;align-items:center;gap:.35rem;padding:.18rem .55rem;border:1px solid #e2d0c9;border-radius:999px;background:#fff;
}
#account .order-detail .receipt-payment .order-state[data-state=paid]{color:#294e36;background:#edf4eb;border-color:#b9cfb7}
#account .order-detail .receipt-payment .order-state[data-state=paid]::before{content:'\2713'}
#account .order-detail>.receipt-fact{padding:.3rem .2rem;border-bottom:1px solid var(--detail-line)}
#account .order-detail .receipt-fact bdi{min-width:0;text-align:end;overflow-wrap:anywhere}
#account #history .order-detail .receipt-section{margin:0;padding:0 .7rem;border:1px solid var(--detail-line);border-radius:10px;background:#fff}
#account .order-detail .receipt-section>summary{padding:.54rem .08rem;min-height:44px;color:var(--detail-wine)}
#account .order-detail .receipt-total{
 padding:.65rem .74rem;background:#f5eae7;border:1px solid #e7d3ce;border-radius:10px;color:var(--detail-wine);
}
#account .order-detail .booking-receipt-link{
 min-height:48px;border-radius:10px;border:1px solid var(--detail-wine);
 background:var(--detail-wine);color:#fff;font-weight:700;text-decoration:none;
}
#account .order-detail .booking-receipt-link:hover{background:#492d37;border-color:#492d37}
#account .order-detail .order-actions{gap:.48rem;padding-block-start:.35rem;border:0}
#account .order-detail .order-actions :is(a,button){min-height:44px;padding:.36rem .68rem;font-size:.85rem}
#account .order-detail .booking-help{justify-self:start;min-height:44px;display:inline-flex;align-items:center}
@media(max-width:360px){
 #account .order-detail .visit-grid{grid-template-columns:minmax(0,1fr)}
 #account .order-detail .booking-identifier .copy-order{padding-inline:.48rem}
 #account .order-detail .receipt-total{font-size:1rem}
}

/* Match the approved storefront lockup and navigation on direct account pages. */
.mb-account-dock{display:none}
.maha-embedded .mb-account-brand-header,.maha-embedded .mb-account-dock{display:none!important}
.mb-account-brand-header{background:#faf7f2;border-bottom:1px solid #dfcfca;color:#462e38}
.mb-account-brand-header>.top{display:flex;justify-content:space-between;align-items:center;min-height:64px;padding:7px max(16px,env(safe-area-inset-right)) 7px max(16px,env(safe-area-inset-left));gap:.55rem}
.mb-account-brand-header .brand{order:-1;flex:none;gap:8px;min-height:44px}
.mb-account-brand-header .brand .mark{width:48px;height:48px}
.mb-account-brand-header .mb-account-wordmark{width:clamp(100px,30vw,132px);height:auto;object-fit:contain;display:block}
.mb-account-menu{margin-inline-start:auto;position:relative;z-index:30}
.mb-account-menu summary{display:grid;place-items:center;width:44px;height:44px;padding:0;color:#462e38;list-style:none;border-radius:.55rem}
.mb-account-menu summary::-webkit-details-marker{display:none}
.mb-account-menu summary svg{width:22px;height:22px}
.mb-account-menu nav{position:absolute;inset-inline-end:0;top:calc(100% + .35rem);min-width:11rem;display:grid;gap:0;padding:.3rem;background:#fffdf9;border:1px solid #dfcfca;border-radius:.72rem;box-shadow:0 8px 22px #462e381a;z-index:30}
.mb-account-menu nav a{padding:.35rem .6rem;border-radius:.45rem;text-decoration:none;white-space:nowrap;color:#462e38}
.mb-account-menu nav a:hover,.mb-account-menu summary:hover{background:#f4e8e6}
.orders-heading-frame #accountBack{box-sizing:border-box;justify-content:center;min-height:44px;padding:.2rem .66rem;border:1px solid #d8c4c7;border-radius:.55rem;background:#fffdfa;color:#462e38;text-decoration:none}
@media(max-width:767px){
html:not(.maha-embedded) .mb-account-dock{position:fixed;inset:auto 0 0;z-index:25;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;align-items:stretch;background:#faf7f2;color:#462e38;border:1px solid #dfcfca;border-bottom:0;border-radius:16px 16px 0 0;padding:4px max(4px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));box-shadow:0 -5px 18px #462e3810}
html:not(.maha-embedded) body>main{padding-bottom:calc(6rem + env(safe-area-inset-bottom))}
.mb-account-dock a{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-width:0;min-height:48px;padding:2px;color:inherit;text-decoration:none;border:1px solid transparent;border-radius:10px;font-size:clamp(.68rem,3vw,.82rem);font-weight:650;line-height:1.25;white-space:nowrap}
.mb-account-dock a :is(svg,img){width:21px;height:21px;flex:none;object-fit:contain}
.mb-account-dock a img{border-radius:50%;width:27px;height:27px}
body.orders-view .mb-account-dock .mb-account-dock-active,body:not(.orders-view) .mb-account-dock .mb-account-dock-account{background:#f4e8e6;border-color:#e2c9cd}
}

/* Booking status and confirmation windows. */
.mb-booking-line-icon{width:1.1em;height:1.1em;flex:none;vertical-align:middle}
#account .order-detail .receipt-payment .order-state.mb-booking-single-check[data-state=paid]::before,
#account .orders105-state .order-state.mb-booking-single-check[data-state=paid]::before,
#account .tile-bottom .order-state.mb-booking-single-check[data-state=paid]::before{content:none}
.order-state.mb-booking-single-check,.mb-booking-confirmed{display:inline-flex;gap:.35em;align-items:center}
dialog.booking-draft-confirm.mb-booking-decision{box-sizing:border-box;width:min(26rem,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 2rem);overflow:auto;overscroll-behavior:contain;border:1px solid #d6bdc3;border-radius:22px;background:var(--paper,#fffaf6);color:var(--wine,#482d3b);font:inherit;text-align:start;padding:20px;box-shadow:0 14px 46px #482d3b37}
.mb-booking-decision .mb-decision-head{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:12px;margin-block-end:.5rem}
.mb-booking-decision h2{grid-column:1/-1;font-size:1.15rem;line-height:1.5}
.mb-booking-decision .mb-decision-medallion{display:grid;place-items:center;background:#f2e2e4;border:1px solid #e6cdd2;color:#704959;border-radius:50%;width:42px;height:42px}
.mb-booking-decision button.mb-decision-close{display:grid;place-items:center;border:1px solid #d6bdc3;background:transparent;color:inherit;border-radius:50%;min-height:44px;width:44px;padding:0}
.mb-booking-decision .order-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin-block-start:1rem}
.mb-booking-decision .order-actions button{width:100%;min-height:44px;white-space:normal}
.mb-booking-decision .order-actions .mb-decision-destructive{background:#653f52;color:white;border-color:#653f52}
.mb-booking-decision button:focus-visible{outline:2px solid #653f52;outline-offset:2px}
@media(max-width:330px){.mb-booking-decision .order-actions{grid-template-columns:1fr}}

/* My Bookings: a stable action zone and separate booking/payment truth. */
#bookingsLoading .booking-skeleton-filters[hidden], #account #orderFilters[hidden]{display:none!important}
#account .mb-booking-tile{padding:14px 14px 9px;border-radius:15px;margin-block:9px;background:#fdf9f6;border-color:#dfd0cb}
#account .mb-booking-tile-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;min-height:2.75rem}
#account .mb-booking-tile .orders105-lead h3{font-size:clamp(.9rem,4vw,1.05rem);line-height:1.35}
#account .mb-booking-tile .orders105-state{align-items:end}
#account .mb-booking-tile-meta{display:grid;grid-template-columns:minmax(0,1fr) max-content;min-height:3.35rem;align-items:start;gap:8px;padding-block:4px 9px}
#account .mb-booking-tile-time{display:grid;gap:.2rem;color:#4f3540;font-size:.82rem;margin:0;line-height:1.4;min-width:0;overflow-wrap:anywhere;unicode-bidi:isolate}
#account .mb-booking-tile-time strong{font-size:.71rem;color:#74525f}
#account .mb-booking-tile-place-price{display:grid;justify-items:end;gap:4px;color:#563443}
#account .mb-booking-tile-place-price .orders105-place{font-size:.73rem}
#account .mb-booking-tile-place-price .tile-total{font-size:1rem;line-height:1.2}
#account .mb-booking-tile-hint{margin:0 0 8px;font-size:.79rem;color:#754e44}
#account .mb-booking-tile-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:start;border-top:1px solid #ebdfdb;padding-block-start:8px}
#account .mb-booking-tile-actions.mb-booking-tile-view-only{grid-template-columns:1fr}
#account .mb-booking-tile-actions .order-actions{display:flex;justify-content:flex-end;gap:4px;min-width:0;flex-wrap:wrap;margin:0;padding:0}
#account .mb-booking-tile-actions .order-actions:has(> :nth-child(2)){grid-column:1/-1}
#account .mb-booking-tile-actions .orders105-detail{box-sizing:border-box;min-width:0;width:100%;min-height:44px;display:inline-flex;justify-content:flex-start;gap:5px;color:#623d51;text-decoration:none;font-weight:650;font-size:.8rem;margin:0}
#account .mb-booking-tile-actions .orders105-detail::after{content:none}
#account .mb-booking-tile-actions .orders105-detail svg{display:block;width:14px;height:14px;flex:none;stroke:currentColor}
#account .mb-booking-tile-actions .orders105-detail:dir(ltr) svg{transform:scaleX(-1)}
#account .mb-booking-tile-actions .mb-booking-schedule,#account .order-detail .mb-booking-schedule{min-height:44px;line-height:1.25;font-size:.8rem;font-weight:650;background:#623447;color:#fff;border:1px solid #623447;border-radius:8px;text-decoration:none}
#account .mb-booking-tile-actions .mb-booking-schedule{width:100%}
#account :is(.mb-booking-tile,.order-detail) .mb103-money{display:inline-flex;flex-direction:row-reverse;direction:ltr;align-items:center;gap:.22rem;unicode-bidi:isolate}
#account :is(.mb-booking-tile,.order-detail) .mb103-money .mb103-sar{flex:none;margin:0}
#account .order-detail .booking-identifier{margin-top:.45rem}
#account .order-detail .booking-identifier bdi{overflow-wrap:anywhere;word-break:break-word}
#account .order-detail .copy-order{-webkit-tap-highlight-color:transparent}
#account .order-detail .visit-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
#account .order-detail .visit-grid > div:last-child{grid-column:auto}
#account .order-detail .mb-detail-payment-status .order-state[data-state=settled]{background:#edf3e9;color:#2e5735;border:1px solid #adc6a7}
#account .order-detail .mb-detail-booking-status .mb-booking-single-check::before{content:none}
