/* Public shell consistency layer. Keep this file last in <head>. */
body.unified-shell .header{
  height:var(--site-header-height,78px);
  padding:8px 25px;
  gap:18px;
  background:linear-gradient(180deg,#fff 20%,#fffaf5);
  isolation:auto;
}
body.unified-shell .header::before{content:none!important;display:none!important}
body.unified-shell .header .brand{transform:none!important}
body.unified-shell .header .brand-image{display:block;width:137px;height:auto}
body.unified-shell .header nav{font-size:11px;gap:0}
body.unified-shell .header nav a{padding:5px 8px}
body.unified-shell .header nav a[aria-current=page]{background:#fff0e4;color:red}
body.unified-shell .header .header-cta{font-size:15px;padding:6px 20px}
body.unified-shell footer{
  display:flex!important;
  min-height:77px;
  padding:10px 24px;
  font-size:9px;
  background:#fffcf9;
  gap:12px;
}
body.unified-shell footer .trust{gap:25px}
body.unified-shell footer .trust>div{gap:7px}
body.unified-shell footer .trust span{font-size:10px;line-height:1.5;max-width:none;white-space:nowrap}

@media(min-width:769px) and (max-width:1100px){
  body.unified-shell .header .header-cta{display:none}
}
@media(min-width:769px) and (max-width:950px){
  body.unified-shell .header{gap:10px;padding-inline:20px}
  body.unified-shell .header nav{font-size:10px}
  body.unified-shell .header nav a{padding-inline:5px}
  body.unified-shell .header .brand-image{width:120px}
}
@media(max-width:768px){
  body.unified-shell .header{height:68px;padding:6px 16px;justify-content:center}
  body.unified-shell .header .brand{position:relative;z-index:2;transform:none!important}
  body.unified-shell .header .brand-image{display:block!important;width:124px;height:auto;opacity:1;visibility:visible}
  body.unified-shell .header .account,
  body.unified-shell .header .menu-toggle{top:18px}
  body.unified-shell .header .account{right:16px}
  body.unified-shell .header .menu-toggle{left:16px}
  body.unified-shell .header nav{top:67px;font-size:13px;z-index:20}
  body.unified-shell .header nav a{padding:9px}
  body.unified-shell footer{display:flex!important;padding:10px 8px}
  body.unified-shell footer .trust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:100%}
  body.unified-shell footer .trust>div{width:auto;min-width:0;gap:5px}
  body.unified-shell footer .trust span{font-size:clamp(8px,2.3vw,10px);letter-spacing:-.15px}
}

/* Shared action icons: a fixed local SVG, independent of glyph/font/OS. */
:root{--action-icon-size:20px;--field-border:#d8deea;--field-focus:#f56945}
body .action-icon{display:inline-block!important;width:var(--action-icon-size)!important;height:var(--action-icon-size)!important;min-width:var(--action-icon-size);flex:0 0 var(--action-icon-size);padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:currentColor!important;vertical-align:middle;transform:none!important;mask:url('/assets/action-forward.svg') center/contain no-repeat;-webkit-mask:url('/assets/action-forward.svg') center/contain no-repeat}
body .action-icon[data-direction=back]{transform:rotate(180deg)!important}
body .button:has(.action-icon){flex-direction:row;direction:rtl;align-items:center;justify-content:center;gap:12px}
body .button>.action-icon{order:2}
body input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body textarea,body select{font-family:inherit;color:#10376b;box-sizing:border-box}
body .phone-field{direction:ltr;background:#fff;border:1.5px solid var(--field-border);overflow:hidden}
body .phone-field input{appearance:none;-webkit-appearance:none;min-width:0;width:100%;flex:1;border:0!important;box-shadow:none!important;outline:0!important;background:transparent;padding:12px 16px;font:inherit;font-size:20px;line-height:1.5;color:#10376b}
body .phone-field:focus-within,body .name-field:focus-within{border-color:var(--field-focus);box-shadow:0 0 0 3px #ffeadf}
body .phone-field input:autofill{box-shadow:0 0 0 1000px #fff inset!important}
body .phone-field input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset!important;-webkit-text-fill-color:#10376b}

/* One continuous canvas; short pages keep the footer at the viewport bottom. */
html{min-height:100%}
body.unified-shell{min-height:100vh;background-repeat:no-repeat;background-attachment:scroll;background-size:100% 100%;background-color:#efd0b5}
body.unified-shell .site-shell{display:flex;flex-direction:column;min-height:calc(100vh - 44px);min-height:calc(100dvh - 44px)}
body.unified-shell .site-shell>main{flex:1 0 auto}
body.unified-shell .site-shell>.header,body.unified-shell .site-shell>footer{flex-shrink:0}
body.unified-shell .site-shell>footer{margin-top:auto}
body.unified-shell .site-shell>#account-load-status,body.unified-shell .site-shell>#checkout-load-status{flex:1 0 auto}
@media(max-width:768px){body.unified-shell .site-shell{min-height:100vh;min-height:100dvh}}
/* Persistent account navigation and loading state. */
.account-portal-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 24px 0;padding:12px 16px;border:1px solid #ffe0c5;border-radius:16px;background:#fffdfb}
.account-portal-nav strong{margin-inline-end:auto;color:#0b315d}
.account-portal-nav a,.account-portal-nav button{font:inherit;border:0;background:transparent;padding:9px 14px;border-radius:10px;color:#0b417e;cursor:pointer}
.account-portal-nav a[aria-current=page]{background:#fff0e7;color:#d82914;font-weight:700}
.account-portal-nav .logout{color:#c82921}
body.unified-shell .site-shell>.account-loading{box-sizing:border-box;width:calc(100% - 48px);max-width:none;min-height:280px;margin:20px 24px;padding:32px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px}
.account-loading[hidden]{display:none!important}
.account-loading-lines{width:min(100%,520px);display:grid;gap:14px}
.account-loading-lines i{display:block;height:24px;border-radius:8px;background:#f3e8df}
.account-loading-lines i:nth-child(2){width:75%}.account-loading-lines i:last-child{width:55%}
.account-page .profile-columns{align-items:stretch}
.account-page .edit-profile{display:flex;flex-direction:column}
.account-page #profile-form{display:flex;flex-direction:column;flex:1}
.account-page #profile-form .save-profile{margin-top:auto}
.account-page .account-layout{grid-template-columns:minmax(0,1fr)}
.account-page .account-sidebar,.account-page .mobile-account-links{display:none}
@media(max-width:768px){.account-portal-nav{margin:12px 12px 0;padding:10px;gap:5px}.account-portal-nav strong{width:100%;margin:0 0 5px}.account-portal-nav a,.account-portal-nav button{font-size:12px;padding:8px}.account-page #profile-form .save-profile{margin-top:17px}body.unified-shell .site-shell>.account-loading{width:calc(100% - 24px);margin:12px;min-height:240px;padding:20px}}

/* Account sidebar stays in place while only the left content changes. */
body.unified-shell .site-shell>.account-portal{flex:1;display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;padding:24px;align-items:start}
.account-portal-sidebar{position:sticky;top:20px;min-width:0}
.account-portal-sidebar .account-portal-nav{margin:0;padding:18px 12px;display:flex;flex-direction:column;align-items:stretch;gap:8px}
.account-portal-sidebar .account-portal-nav strong{margin:0;padding:4px 10px 16px;border-bottom:1px solid #f3e5d9}
.account-portal-sidebar .account-portal-nav a,.account-portal-sidebar .account-portal-nav button{text-align:right}
.account-portal-content{min-width:0}
.account-page .account-portal-content>main{padding:0}
.account-portal-content .profile-columns{grid-template-columns:minmax(0,1fr)}
.account-portal-content .profile-extras{display:none}
.account-portal-content .save-profile{margin-top:20px!important}
.account-portal-content .account-loading{box-sizing:border-box;width:100%;margin:0;min-height:360px;padding:32px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}
.account-portal-toggle{display:none}
@media(max-width:768px){body.unified-shell .site-shell>.account-portal{display:block;padding:12px}.account-portal-sidebar{position:static;margin-bottom:16px}.account-portal-toggle{display:block;width:100%;padding:13px 16px;text-align:right;border:1px solid #ffe0c5;border-radius:12px;background:#fffdfb;color:#0b315d;font:inherit;font-weight:700;cursor:pointer}.account-portal-sidebar .account-portal-nav{display:none;margin-top:8px}.account-portal-sidebar.is-open .account-portal-nav{display:flex}.account-portal-content .account-loading{min-height:260px}}
.ticket-form{display:grid;gap:16px;margin-top:24px}.ticket-form label{display:grid;gap:8px;font-weight:700}.ticket-form input,.ticket-form textarea{width:100%;padding:12px;border:1px solid #d8deea;border-radius:12px;background:#fff;font:inherit;resize:vertical}.ticket-form button{padding:12px;cursor:pointer}.ticket-row{width:100%;margin-top:12px;text-align:right;justify-content:flex-start}.ticket-thread{display:grid;gap:14px;margin-top:20px}.ticket-message{padding:16px;border:1px solid #e7eaf0;border-radius:14px;background:#fff}.ticket-message.admin{background:#edf6ff}.ticket-message small{display:block;color:#637995;margin-top:5px}.ticket-message p{white-space:pre-wrap;overflow-wrap:anywhere}#ticket-app h1{font-size:28px}#ticket-status:empty{display:none}

/* Compact product navigation, desktop and mobile. */
body.unified-shell .header #navigation{justify-content:flex-end;max-width:none;gap:16px}
body.unified-shell .header .header-account{border:1px solid #d8deea;border-radius:12px;padding:9px 14px;background:#fff;color:#0b315d}
@media(min-width:769px){body.unified-shell .header .header-cta{display:flex!important}body.unified-shell .header #navigation{font-size:13px}}
@media(max-width:768px){body.unified-shell .header #navigation.open{gap:10px}body.unified-shell .header .header-account{width:100%;text-align:center}}

@media(min-width:769px) and (max-width:1000px){.hero .main-cta{font-size:14px!important;gap:7px!important;padding:10px 8px;white-space:nowrap}}

/* Minimal header: brand at the right, fixed account icon at the far left. */
body.unified-shell .header{display:flex!important;flex-direction:row!important;direction:rtl;justify-content:flex-start!important;align-items:center;gap:16px!important}
body.unified-shell .header .brand{order:0;margin:0;margin-inline-end:auto}
body.unified-shell .header #navigation,body.unified-shell .header .menu-toggle{display:none!important}
body.unified-shell .header .header-cta{order:1;margin:0}
body.unified-shell .header .account{display:flex!important;order:2;position:static!important;inset:auto!important;transform:none!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;margin:0!important;padding:9px;color:#0b315d;border:1px solid #e4e9ef;border-radius:50%;background:#fff}
body.unified-shell .header .account svg{width:26px!important;height:26px!important}
body.unified-shell .header .account:hover{background:#fff0e4;border-color:#ffcaa5}
@media(max-width:768px){body.unified-shell .header{padding:8px 16px!important}body.unified-shell .header .header-cta{display:none!important}body.unified-shell .header .brand-image{width:130px}body.unified-shell .header .account{flex-basis:44px}}
/* Keep compact purchase CTAs on one line without shrinking their touch target. */
html body .price-card .button.buy{white-space:nowrap;gap:6px;padding:9px 10px;font-size:15px;min-height:44px;line-height:1.5;width:100%}
html body .price-card .button.buy .action-icon{flex-shrink:0;width:16px;height:16px}
@media(max-width:380px){html body .price-card .button.buy{font-size:13px;padding-inline:6px;gap:4px}}
