/* Bookie API client workspace refinement v2.9.3.
   Every rule is account-route scoped to protect storefront and admin pages. */
body.account-surface-v293{
  --ap-ink:#092735;
  --ap-navy:#061f2b;
  --ap-blue:#183f70;
  --ap-orange:#ff6817;
  --ap-mint:#0b8b6d;
  --ap-paper:#f3f7f8;
  --ap-line:#d8e5e9;
  --ap-muted:#657c87;
  --ap-shadow:0 18px 48px rgba(6,31,43,.08);
  color:var(--ap-ink);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Shared client navigation */
body.account-surface-v293 .v29-workspace-nav{
  width:100%;
  max-width:1220px;
  box-sizing:border-box;
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  gap:6px!important;
  margin:0 auto 28px!important;
  padding:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  border:1px solid rgba(199,216,222,.92)!important;
  border-radius:17px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 14px 38px rgba(8,35,47,.075)!important;
  scrollbar-width:thin;
  scrollbar-color:#c9d9de transparent;
  isolation:isolate;
}
body.account-surface-v293 .v29-workspace-nav>a{
  position:relative;
  flex:1 0 auto!important;
  min-height:48px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-sizing:border-box;
  padding:9px 11px!important;
  border:1px solid transparent;
  border-radius:11px!important;
  color:#48616c!important;
  font-size:12px!important;
  line-height:1.2;
  font-weight:800!important;
  text-decoration:none;
  white-space:nowrap;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}
body.account-surface-v293 .v29-workspace-nav>a:hover{
  border-color:#f3d5c3;
  background:#fff6f0!important;
  color:#bb4d11!important;
  transform:translateY(-1px);
}
body.account-surface-v293 .v29-workspace-nav>a.is-active{
  border-color:var(--ap-navy)!important;
  background:linear-gradient(145deg,#092a38,#061f2b)!important;
  color:#fff!important;
  box-shadow:inset 0 -3px var(--ap-orange),0 8px 18px rgba(6,31,43,.16)!important;
}
body.account-surface-v293 .workspace-nav-icon{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:8px;
  background:#eef5f5;
  color:var(--ap-mint);
}
body.account-surface-v293 .v29-workspace-nav>a.is-active .workspace-nav-icon{
  background:rgba(255,255,255,.1);
  color:#ff965d;
}
body.account-surface-v293 .workspace-nav-icon svg{width:15px;height:15px}
body.account-surface-v293 .v29-workspace-nav>form{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  margin:0 0 0 3px!important;
  padding-left:7px;
  border-left:1px solid #e3ebed;
}
body.account-surface-v293 .v29-workspace-nav .link-button{
  min-height:48px;
  padding:9px 12px!important;
  border-radius:10px!important;
  color:#657b85!important;
  font-size:11px!important;
  font-weight:800!important;
  white-space:nowrap;
}

/* Cart profile assurance */
body.page-cart .co-verified-profile{
  display:grid!important;
  grid-template-columns:minmax(0,1fr);
  align-items:stretch!important;
  gap:12px!important;
  padding:15px!important;
  overflow:hidden;
  border-color:#bfe4d8!important;
  background:linear-gradient(145deg,#effaf6,#f9fdfb)!important;
  box-shadow:inset 4px 0 #11a27d;
}
body.page-cart .co-verified-profile>div{align-items:flex-start!important;gap:10px!important}
body.page-cart .co-verified-profile>div>svg{flex:0 0 auto;width:18px;height:18px;margin-top:2px}
body.page-cart .co-verified-profile strong{color:#08775d;font-size:12px;line-height:1.45}
body.page-cart .co-verified-profile small{font-size:10px;line-height:1.55}
body.page-cart .co-verified-profile>a{
  width:100%;
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  box-sizing:border-box;
  padding:9px 12px;
  border:1px solid #c8ded7;
  border-radius:9px;
  background:#fff;
  color:#b94b0f!important;
  font-size:11px!important;
  font-weight:850!important;
  white-space:normal!important;
  box-shadow:0 7px 16px rgba(7,65,52,.055);
}
body.page-cart .co-verified-profile>a svg{flex:0 0 auto;width:15px;height:15px}

/* Orders and profile: reconnect and polish the dedicated workspace */
body.page-orders .v282-account,
body.page-profile .v282-account{
  min-height:72vh;
  background:radial-gradient(circle at 6% 3%,#e7f8f1 0,transparent 25%),var(--ap-paper)!important;
  color:var(--ap-ink)!important;
}
body.page-orders .v282-account .v29-workspace-nav,
body.page-profile .v282-account .v29-workspace-nav{max-width:none}
body.page-orders .v282-hero,
body.page-profile .v282-hero{
  border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(132deg,#061f2b 0%,#0a3c46 100%);
  box-shadow:0 26px 64px rgba(6,31,43,.16);
}
body.page-profile .v282-profile-form{margin-top:20px}
body.page-profile .v282-card{margin-top:0}
body.page-profile .v282-card>header h2{color:var(--ap-ink);font-size:22px}
body.page-profile .v282-profile-form label{font-size:12px;line-height:1.4;color:#294955}
body.page-profile .v282-profile-form :is(input,select){min-height:48px;font-size:13px}
body.page-profile .v282-profile-form input[readonly]{background:#eef3f5;color:#617783}
body.page-profile .v282-save{min-height:49px}

/* GGR: restore readable canvas, hierarchy and responsive ledger */
body.page-ggr .v28-ggr{
  min-height:72vh;
  background:radial-gradient(circle at 92% 8%,#e3f7ef 0,transparent 26%),var(--ap-paper)!important;
  color:var(--ap-ink)!important;
}
body.page-ggr .v28-ggr>.v29-workspace-nav{width:min(1200px,calc(100% - 40px));margin:28px auto 0!important}
body.page-ggr .v28-ggr-hero{border:1px solid rgba(255,255,255,.09);box-shadow:0 28px 68px rgba(6,31,43,.17)}
body.page-ggr .v28-ggr-metrics>div{border-top:3px solid var(--ap-orange);box-shadow:var(--ap-shadow)}
body.page-ggr .v28-ggr-card{color:var(--ap-ink);box-shadow:var(--ap-shadow)}
body.page-ggr .v28-ggr-card h2,
body.page-ggr .v28-ggr-empty strong{color:var(--ap-ink)!important}
body.page-ggr .v28-ggr-card td{color:#294955}
body.page-ggr .v28-ggr-empty{background:linear-gradient(145deg,#fbfdfd,#eef8f5)}

/* Invoice workspace and delivery card */
body:is(.page-order,.page-invoice) .co-invoice-page{
  padding:28px 20px 78px;
  background:radial-gradient(circle at 8% 4%,#e9f8f2 0,transparent 24%),var(--ap-paper);
}
body:is(.page-order,.page-invoice) .co-invoice-page>.v29-workspace-nav{width:min(1220px,100%)}
body:is(.page-order,.page-invoice) .co-invoice-shell{width:min(920px,100%)}
body:is(.page-order,.page-invoice) .co-invoice-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  box-sizing:border-box;
  margin:0 0 18px;
  padding:12px 15px;
  border:1px solid var(--ap-line);
  border-radius:12px;
  background:rgba(255,255,255,.92);
  color:#536b77;
  box-shadow:0 9px 25px rgba(6,31,43,.055);
}
body:is(.page-order,.page-invoice) .co-invoice-topline>a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#087861;
  font-size:12px;
  font-weight:850;
}
body:is(.page-order,.page-invoice) .co-invoice-topline>a>span{
  display:grid;
  place-items:center;
  width:27px;
  height:27px;
  border-radius:8px;
  background:#e9f7f2;
}
body:is(.page-order,.page-invoice) .co-invoice-topline>span{display:grid;gap:2px;text-align:right;font-size:12px;font-weight:800;color:#284b5b}
body:is(.page-order,.page-invoice) .co-invoice-topline small{color:#82949b;font-size:8px;letter-spacing:.13em}
body:is(.page-order,.page-invoice) .v29-order-progress{padding:24px 26px;border-radius:19px;box-shadow:var(--ap-shadow)}
body:is(.page-order,.page-invoice) .v29-order-progress h2{color:var(--ap-ink);font-size:28px;line-height:1.15;letter-spacing:-.035em}
body:is(.page-order,.page-invoice) .v29-order-progress p{font-size:14px;line-height:1.6}
body:is(.page-order,.page-invoice) .co-invoice-card{border-radius:18px;box-shadow:0 26px 70px rgba(6,31,43,.09)}

@media(max-width:1120px){
  body.account-surface-v293 .v29-workspace-nav>a{flex:0 0 auto!important;scroll-snap-align:start}
  body.account-surface-v293 .v29-workspace-nav{scroll-snap-type:x proximity}
}

@media(max-width:900px){
  body.account-surface-v293 .v29-workspace-nav{margin-left:0!important;margin-right:0!important}
  body.account-surface-v293 .v29-workspace-nav>form{display:none!important}
  body.account-surface-v293 .v29-workspace-nav>a{min-height:45px;padding:8px 11px!important;font-size:11px!important}
  body.page-ggr .v28-ggr>.v29-workspace-nav{display:flex!important}
}

@media(max-width:650px){
  body.account-surface-v293 .v29-workspace-nav{width:100%;margin-bottom:20px!important;padding:6px!important;border-radius:13px!important}
  body.account-surface-v293 .workspace-nav-icon{width:24px;height:24px}
  body.page-ggr .v28-ggr>.v29-workspace-nav{width:calc(100% - 28px);margin:16px auto 0!important}
  body:is(.page-order,.page-invoice) .co-invoice-page{padding:16px 12px 48px}
  body:is(.page-order,.page-invoice) .co-invoice-topline{align-items:flex-start;padding:11px 12px}
  body:is(.page-order,.page-invoice) .co-invoice-topline>a{font-size:11px}
  body:is(.page-order,.page-invoice) .co-invoice-topline>span{max-width:48%;overflow-wrap:anywhere}
  body:is(.page-order,.page-invoice) .v29-order-progress{padding:20px 18px;border-radius:16px}
  body:is(.page-order,.page-invoice) .v29-order-progress h2{font-size:24px}
  body:is(.page-order,.page-invoice) .v29-order-progress p{font-size:13px}
  body:is(.page-order,.page-invoice) .v29-order-progress a{align-items:flex-start}
  body:is(.page-order,.page-invoice) .co-invoice-card{border-radius:15px}
  body:is(.page-order,.page-invoice) .co-invoice-document{padding:27px 19px 21px}
  body:is(.page-order,.page-invoice) .co-invoice-parties span{font-size:12px}
  body:is(.page-order,.page-invoice) .co-invoice-parties h2{font-size:15px}
  body:is(.page-order,.page-invoice) .co-invoice-parties p{font-size:11px;line-height:1.65}
  body:is(.page-order,.page-invoice) .co-invoice-items-title{font-size:17px}
  body:is(.page-order,.page-invoice) .co-invoice-table td{font-size:11px}
}

@media(max-width:420px){
  body.account-surface-v293 .v29-workspace-nav>a{gap:7px;padding-inline:9px!important}
  body:is(.page-order,.page-invoice) .co-invoice-topline{display:grid;grid-template-columns:1fr}
  body:is(.page-order,.page-invoice) .co-invoice-topline>span{max-width:none;text-align:left;padding-left:35px}
  body.page-cart .co-verified-profile{padding:13px!important}
}

@media(prefers-reduced-motion:reduce){
  body.account-surface-v293 .v29-workspace-nav>a{transition:none}
  body.account-surface-v293 .v29-workspace-nav>a:hover{transform:none}
}

@media print{
  body.account-surface-v293 .v29-workspace-nav{display:none!important}
}
