/* One self-contained checkout for Shark and public Divers documents. The ID
   scopes its controls above each host's generic button / form typography. */
#divers-group-checkout {
  --gc-bg:#f3f7f8; --gc-panel:#fff; --gc-ink:#153441; --gc-muted:#58717d;
  --gc-line:#d5e2e7; --gc-soft:#eaf2f5; --gc-accent:#176780; --gc-on-accent:#fff;
  --gc-danger:#a63f32; --gc-success:#246951; --gc-success-bg:#e7f4ed;
  box-sizing:border-box; width:min(900px,calc(100% - 40px)); max-width:none;
  max-height:calc(100dvh - 48px); margin:auto; padding:0; border:1px solid var(--gc-line);
  border-radius:22px; color:var(--gc-ink); background:var(--gc-bg);
  box-shadow:0 28px 90px #00182255; overflow:auto; overscroll-behavior:contain;
  scrollbar-width:thin; scrollbar-color:var(--gc-line) transparent;
  font:15px/1.5 system-ui,sans-serif; text-align:left;
}
html[data-theme=dark] #divers-group-checkout {
  --gc-bg:#102631; --gc-panel:#17343f; --gc-ink:#edf7fa; --gc-muted:#b0c7d0;
  --gc-line:#37535f; --gc-soft:#213e4b; --gc-accent:#a4e2e8; --gc-on-accent:#10313c;
  --gc-danger:#ffb4a6; --gc-success:#b2e6cb; --gc-success-bg:#24493f;
}
#divers-group-checkout::backdrop { background:#102d3b88; backdrop-filter:blur(7px); }
body:has(#divers-group-checkout[open]) { overflow:hidden; }
#divers-group-checkout * { box-sizing:border-box; }
#divers-group-checkout .gc-header {
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  position:sticky; top:0; padding:20px 28px; background:var(--gc-panel);
  color:var(--gc-ink); border-bottom:1px solid var(--gc-line); z-index:2;
}
#divers-group-checkout h2 { margin:0; font:700 24px/1.25 system-ui,sans-serif; letter-spacing:-.035em; color:var(--gc-ink); }
#divers-group-checkout #gc-title:focus { outline:none; }
#divers-group-checkout h3 { margin:0 0 6px; font:700 19px/1.3 system-ui,sans-serif; letter-spacing:-.02em; color:var(--gc-ink); }
#divers-group-checkout p { color:var(--gc-muted); line-height:1.5; }
#divers-group-checkout .gc-content { padding:0 28px 24px; }
#divers-group-checkout .gc-status { margin:0; padding:0 28px 20px; color:var(--gc-danger); }
#divers-group-checkout .gc-status:empty { padding:0; }
#divers-group-checkout button, #divers-group-checkout .gc-primary {
  appearance:none; display:inline-flex; align-items:center; justify-content:center;
  flex:0 0 auto; gap:8px; width:auto; max-width:100%; min-width:0; min-height:44px;
  margin:0; padding:11px 16px; border:1px solid var(--gc-line); border-radius:12px;
  background:var(--gc-panel); color:var(--gc-ink); font:650 14px/1.35 system-ui,sans-serif;
  letter-spacing:0; text-transform:none; text-decoration:none; text-shadow:none;
  box-shadow:none; backdrop-filter:none; transform:none; cursor:pointer;
  transition:background-color .16s,border-color .16s,color .16s;
}
#divers-group-checkout button::before, #divers-group-checkout button::after { content:none; }
#divers-group-checkout button:disabled { opacity:.4; cursor:default; }
#divers-group-checkout :is(button,a,input,select,textarea,summary):focus-visible { outline:3px solid var(--gc-accent); outline-offset:3px; box-shadow:none; }
#divers-group-checkout .gc-close { width:40px; height:40px; min-height:40px; padding:0; border-radius:50%; font:400 26px/1 system-ui; background:var(--gc-soft); border-color:transparent; }
#divers-group-checkout .gc-primary { background:var(--gc-accent); border-color:var(--gc-accent); color:var(--gc-on-accent); }
#divers-group-checkout .gc-fields { border:0; margin:0; padding:0; min-width:0; }
#divers-group-checkout .gc-step { font:700 12px/1.5 system-ui; letter-spacing:.06em; text-transform:uppercase; color:var(--gc-muted); margin:22px 0 12px; }
#divers-group-checkout .gc-card { background:var(--gc-panel); border:1px solid var(--gc-line); border-radius:16px; padding:20px; margin:12px 0; }
#divers-group-checkout .gc-offer { display:grid; grid-template-columns:80px minmax(0,1fr) auto; align-items:center; gap:16px; }
#divers-group-checkout .gc-offer:not(:has(img)) { grid-template-columns:minmax(0,1fr) auto; }
#divers-group-checkout .gc-offer img { width:80px; height:76px; object-fit:cover; border-radius:10px; }
#divers-group-checkout .gc-offer-copy { min-width:0; }
#divers-group-checkout .gc-offer p { font:400 13px/1.5 system-ui; margin:4px 0; }
#divers-group-checkout .gc-badge { display:inline-block; background:var(--gc-success-bg); border-radius:6px; padding:4px 8px; font-size:12px; color:var(--gc-success); }
#divers-group-checkout .gc-subtotal { display:grid; gap:3px; text-align:right; white-space:nowrap; }
#divers-group-checkout .gc-subtotal small, #divers-group-checkout .gc-estimate small { color:var(--gc-muted); font-size:12px; }
#divers-group-checkout .gc-subtotal strong { font-size:19px; }
#divers-group-checkout .gc-quantity { display:flex; align-items:end; flex-wrap:wrap; gap:16px 24px; padding:20px 0; }
#divers-group-checkout label { display:flex; flex-direction:column; gap:7px; font:600 13px/1.5 system-ui; min-width:0; color:var(--gc-ink); }
#divers-group-checkout :is(input,select,textarea) {
  box-sizing:border-box; width:100%; min-width:0; min-height:44px; margin:0;
  border:1px solid var(--gc-line); border-radius:9px; padding:10px 12px;
  font:400 15px/1.4 system-ui; background:var(--gc-panel); color:var(--gc-ink);
  box-shadow:none; text-shadow:none; accent-color:var(--gc-accent);
}
#divers-group-checkout textarea { height:auto; min-height:44px; resize:vertical; }
#divers-group-checkout :is(input,textarea,select):disabled { background:var(--gc-soft); color:var(--gc-muted); }
#divers-group-checkout .gc-count { display:grid; gap:7px; }
#divers-group-checkout .gc-stepper { display:flex; width:148px; border:1px solid var(--gc-line); border-radius:12px; background:var(--gc-soft); padding:3px; gap:2px; }
#divers-group-checkout .gc-count-button { width:44px; min-height:44px; padding:0; border:0; border-radius:8px; font-size:22px; background:transparent; }
#divers-group-checkout .gc-stepper input { appearance:textfield; width:44px; min-height:44px; border:0; border-radius:7px; padding:6px 0; text-align:center; font-weight:700; background:var(--gc-panel); }
#divers-group-checkout .gc-stepper input::-webkit-inner-spin-button, #divers-group-checkout .gc-stepper input::-webkit-outer-spin-button { appearance:none; margin:0; }
#divers-group-checkout .gc-checkbox { flex-direction:row; align-items:center; gap:10px; min-height:52px; }
#divers-group-checkout .gc-checkbox input { flex:0 0 20px; width:20px; height:20px; min-height:0; padding:0; }
#divers-group-checkout .gc-person { border-top:1px solid var(--gc-line); padding:18px 0 2px; margin-top:14px; display:grid; grid-template-columns:1fr 1fr; gap:14px 20px; }
#divers-group-checkout .gc-person:first-of-type { margin-top:0; }
#divers-group-checkout .gc-person-header { grid-column:1/-1; display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:6px 16px; }
#divers-group-checkout .gc-person-header strong { font-size:14px; }
#divers-group-checkout .gc-person-price { font-size:14px; font-weight:650; white-space:nowrap; }
#divers-group-checkout .gc-person > .gc-badge { grid-column:1/-1; justify-self:start; }
#divers-group-checkout .gc-person > label:last-child:nth-of-type(1) { grid-column:1/-1; }
#divers-group-checkout .gc-contact { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
#divers-group-checkout .gc-contact > label:first-child { grid-column:1/-1; }
#divers-group-checkout .gc-customer { display:flex; align-items:center; flex-wrap:wrap; gap:14px; padding:18px; margin-bottom:20px; border:1px solid var(--gc-line); border-radius:14px; background:var(--gc-panel); }
#divers-group-checkout .gc-customer-avatar { display:grid; place-items:center; flex:0 0 48px; height:48px; border-radius:50%; background:var(--gc-soft); color:var(--gc-accent); font-weight:750; }
#divers-group-checkout .gc-customer-info { flex:1 1 200px; min-width:0; display:grid; gap:3px; }
#divers-group-checkout .gc-customer-info > strong { font-size:16px; }
#divers-group-checkout .gc-customer-info > small { color:var(--gc-success); font-size:12px; }
#divers-group-checkout .gc-customer-details { display:flex; flex-wrap:wrap; gap:4px 18px; margin-top:5px; font-size:13px; color:var(--gc-muted); overflow-wrap:anywhere; }
#divers-group-checkout .gc-profile-link { font-size:12px; padding:10px 0; }
#divers-group-checkout .gc-auth { margin-bottom:20px; padding:20px; border:1px solid var(--gc-line); border-radius:14px; background:var(--gc-panel); }
#divers-group-checkout .gc-auth p { font-size:14px; margin:10px 0; }
#divers-group-checkout .gc-auth .gc-actions { justify-content:flex-start; align-items:center; }
#divers-group-checkout .gc-secondary { display:inline-flex; align-items:center; min-height:44px; padding:10px 16px; border:1px solid var(--gc-line); border-radius:12px; font-size:14px; font-weight:650; text-decoration:none; }
#divers-group-checkout .gc-explanation { font-size:12px; color:var(--gc-muted); margin:16px 0; max-width:72ch; }
#divers-group-checkout .gc-nav { display:flex; justify-content:flex-end; gap:12px; margin:12px 0 0; }
#divers-group-checkout .gc-nav button { border:0; padding:6px 0; min-height:36px; background:transparent; color:var(--gc-accent); }
#divers-group-checkout .gc-actions { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:20px 0 0; }
#divers-group-checkout .gc-remove { margin-left:auto; color:var(--gc-danger); background:transparent; border:0; padding-inline:8px; }
#divers-group-checkout .gc-checkout-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; border-top:1px solid var(--gc-line); padding:20px 0 0; margin-top:20px; }
#divers-group-checkout .gc-estimate { display:grid; gap:2px; }
#divers-group-checkout .gc-estimate strong { font-size:25px; letter-spacing:-.04em; }
#divers-group-checkout .gc-review { padding-top:20px; }
#divers-group-checkout .gc-review-table { width:100%; border-collapse:collapse; table-layout:fixed; font:14px/1.5 system-ui,sans-serif; }
#divers-group-checkout .gc-review-table caption { text-align:left; font-weight:700; padding:0 0 12px; }
#divers-group-checkout .gc-review-table th { text-align:left; color:var(--gc-muted); font-size:12px; font-weight:600; background:var(--gc-soft); }
#divers-group-checkout .gc-review-table :is(th,td) { padding:12px; border:0; border-bottom:1px solid var(--gc-line); vertical-align:top; overflow-wrap:anywhere; }
#divers-group-checkout .gc-review-table th:first-child { width:46%; }
#divers-group-checkout .gc-review-table :is(th,td):last-child { text-align:right; width:29%; }
#divers-group-checkout .gc-review-table strong { display:block; font-size:14px; }
#divers-group-checkout .gc-review-table small { display:block; font-size:12px; font-weight:400; color:var(--gc-muted); }
#divers-group-checkout .gc-review-table p { margin:6px 0 0; font-size:12px; }
#divers-group-checkout :is(.gc-review-total,.gc-review-due,.gc-review-later) { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:10px 12px; }
#divers-group-checkout .gc-review-total { margin-top:8px; }
#divers-group-checkout .gc-review-due { background:var(--gc-soft); border-radius:8px; font-weight:700; }
#divers-group-checkout .gc-review-due strong { font-size:22px; }
#divers-group-checkout .gc-review-later { font-size:13px; color:var(--gc-muted); }
#divers-group-checkout .gc-review-details { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; margin:24px 0 0; padding-top:20px; border-top:1px solid var(--gc-line); }
#divers-group-checkout .gc-review-contact { min-width:0; overflow-wrap:anywhere; font-size:14px; }
#divers-group-checkout .gc-review-contact h3 { font-size:15px; margin-bottom:12px; }
#divers-group-checkout .gc-review-contact :is(p,h4) { margin:4px 0; font-size:13px; }
#divers-group-checkout .gc-review-contact h4 { margin-top:14px; }
#divers-group-checkout .gc-payment-methods { padding:0; margin:0; border:0; min-width:0; }
#divers-group-checkout .gc-payment-methods legend { padding:0; margin-bottom:12px; font-size:15px; font-weight:700; }
#divers-group-checkout .gc-payment-option { flex-direction:row; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--gc-line); border-radius:8px; margin-bottom:8px; cursor:pointer; background:var(--gc-panel); }
#divers-group-checkout .gc-payment-option:has(:checked) { border-color:var(--gc-accent); background:var(--gc-soft); }
#divers-group-checkout .gc-payment-option input { width:18px; height:18px; min-height:0; flex:0 0 18px; margin:0; padding:0; }
#divers-group-checkout .gc-payment-hint { font-size:12px; margin:10px 0; }
#divers-group-checkout .gc-payment-panel { margin-top:18px; }
#divers-group-checkout .gc-payment-grid { display:grid; grid-template-columns:240px minmax(0,1fr); align-items:center; gap:20px; }
#divers-group-checkout .gc-payment-grid img { width:240px; max-width:100%; height:auto; border-radius:8px; }
#divers-group-checkout .gc-payment-grid dl { margin:0; overflow-wrap:anywhere; }
#divers-group-checkout .gc-payment-grid dt { color:var(--gc-muted); font-size:12px; }
#divers-group-checkout .gc-payment-grid dd { margin:2px 0 12px; font-size:17px; font-weight:700; }
#divers-group-checkout details { font-size:13px; margin-top:16px; }
#divers-group-checkout summary { cursor:pointer; }
#divers-group-checkout a:not(.gc-primary) { color:var(--gc-accent); text-underline-offset:3px; }
/* Entry controls are also shared, but outside the modal. */
[data-group-checkout] .gc-actions { display:flex; flex-wrap:wrap; gap:12px; margin:14px 0; }
[data-group-checkout] button { width:auto; min-height:44px; }
[data-group-checkout] > label { display:grid; gap:8px; }
[data-group-checkout] select { width:100%; min-height:44px; }
.gc-page { max-width:960px; margin:auto; }
.gc-page [data-group-checkout] { display:grid; gap:20px; }
@media(hover:hover) and (pointer:fine) {
  #divers-group-checkout button:not(:disabled):hover { background:var(--gc-soft); border-color:var(--gc-muted); box-shadow:none; transform:none; }
  #divers-group-checkout .gc-primary:not(:disabled):hover { background:color-mix(in srgb,var(--gc-accent) 87%,var(--gc-ink)); border-color:transparent; }
  #divers-group-checkout .gc-remove:not(:disabled):hover { background:color-mix(in srgb,var(--gc-danger) 10%,transparent); border-color:transparent; }
}
#divers-group-checkout button:not(:disabled):active { transform:none; box-shadow:inset 0 2px 4px #00182220; }
@media(max-width:600px) {
  #divers-group-checkout { width:100%; max-width:100%; height:100dvh; max-height:100dvh; margin:0; border:0; border-radius:0; }
  #divers-group-checkout .gc-header { padding:14px 16px; padding-top:max(14px,env(safe-area-inset-top)); }
  #divers-group-checkout h2 { font-size:22px; }
  #divers-group-checkout .gc-content { padding:0 16px max(20px,env(safe-area-inset-bottom)); }
  #divers-group-checkout .gc-card { padding:16px; border-radius:14px; }
  #divers-group-checkout .gc-offer { grid-template-columns:64px minmax(0,1fr); gap:12px; }
  #divers-group-checkout .gc-offer img { width:64px; height:64px; }
  #divers-group-checkout .gc-subtotal { grid-column:1/-1; display:flex; align-items:baseline; justify-content:space-between; border-top:1px solid var(--gc-line); padding-top:12px; }
  #divers-group-checkout h3 { font-size:17px; }
  #divers-group-checkout .gc-quantity { gap:12px; }
  #divers-group-checkout .gc-checkbox { font-size:12px; }
  #divers-group-checkout .gc-remove { margin:0 0 0 auto; min-height:36px; padding-block:6px; }
  #divers-group-checkout .gc-person, #divers-group-checkout .gc-contact { grid-template-columns:1fr; }
  #divers-group-checkout :is(input,select,textarea) { font-size:16px; }
  #divers-group-checkout .gc-checkout-footer { flex-wrap:wrap; gap:14px; }
  #divers-group-checkout .gc-estimate { display:flex; align-items:baseline; justify-content:space-between; width:100%; }
  #divers-group-checkout .gc-checkout-footer > button { width:100%; }
  #divers-group-checkout .gc-actions button { flex:1 1 180px; }
  #divers-group-checkout .gc-status { padding:0 16px 20px; }
}
@media(prefers-reduced-motion:reduce) { #divers-group-checkout button { transition:none; } }

#divers-group-checkout .gc-order-header { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin-bottom:18px; }
#divers-group-checkout .gc-order-header small { color:var(--gc-muted); }
#divers-group-checkout .gc-order-total { font-size:20px; }
#divers-group-checkout .gc-order-item { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-top:1px solid var(--gc-line); overflow-wrap:anywhere; }
#divers-group-checkout .gc-order-item p { margin:4px 0; font-size:13px; }
#divers-group-checkout .gc-order-state { align-self:start; border-radius:6px; padding:4px 8px; background:var(--gc-soft); color:var(--gc-muted); font-size:12px; }
#divers-group-checkout .gc-order-state[data-state='approved'] { background:var(--gc-success-bg); color:var(--gc-success); }
#divers-group-checkout .gc-empty { padding:24px 0; }
@media(max-width:600px) { #divers-group-checkout .gc-order-item { flex-direction:column; } }

@media(max-width:600px) {
  #divers-group-checkout .gc-review-details { grid-template-columns:minmax(0,1fr); gap:20px; }
  #divers-group-checkout .gc-review-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  #divers-group-checkout .gc-review-table tr { display:grid; grid-template-columns:minmax(0,1fr) auto; padding:12px 0; border-bottom:1px solid var(--gc-line); }
  #divers-group-checkout .gc-review-table td { border:0; padding:3px 0; width:auto; }
  #divers-group-checkout .gc-review-table td:first-child { grid-column:1/-1; }
  #divers-group-checkout .gc-review-table td:last-child { width:auto; max-width:180px; }
  #divers-group-checkout .gc-payment-grid { grid-template-columns:minmax(0,1fr); justify-items:center; gap:12px; }
  #divers-group-checkout .gc-payment-grid dl { width:100%; }
}
