/* KVK Grocery Delivery Module Test Workbench v5.7.37 / shared layer v3.9.267
   Identity-first auth, all-status gateway refund, singleton refresh continuity,
   delivery OTP/return lifecycle and map first-render correction. */
:root{--kvk-v39267-line:rgba(83,148,164,.72);--kvk-v39267-soft:rgba(219,239,241,.92);--kvk-v39267-strong:rgba(198,229,233,.92)}

/* Payment Gateway actions: exact source row, never a detached second line. */
html body[data-role] .pg-row-v39202>.actions,
html body[data-role] .pg-row-v39202 .payment-gateway-actions-v39267{
  display:flex!important;flex-flow:row nowrap!important;align-items:stretch!important;gap:7px!important;
  width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;
  scrollbar-width:thin!important;scrollbar-gutter:stable!important;padding:1px 1px 5px!important
}
html body[data-role] .pg-row-v39202>.actions .btn,
html body[data-role] .pg-row-v39202 .payment-gateway-actions-v39267 .btn{
  flex:1 0 min(150px,22%)!important;min-width:145px!important;white-space:nowrap!important;margin:0!important
}

/* Gateway refund lifecycle shown at the top of every paid order. */
.kvk-refund-status-v39267{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 9px;padding:8px 10px;border:1px solid var(--kvk-v39267-line);border-radius:12px;background:var(--kvk-v39267-soft);font-size:12px;font-weight:850}
.kvk-refund-status-v39267 .kvk-refund-badges-v39267{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.kvk-refund-status-v39267.processing{border-color:#f59e0b}.kvk-refund-status-v39267.refunded{border-color:#16a34a}.kvk-refund-status-v39267.failed{border-color:#dc2626}
.kvk-refund-status-v39267 .btn{min-height:34px!important;white-space:nowrap!important}
.kvk-delivered-refund-row-v39242{display:none!important}

/* Customer delivery OTP. */
.kvk-customer-delivery-otp-v39267{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0;padding:8px 10px;border:1px solid var(--kvk-v39267-line);border-radius:12px;background:var(--kvk-v39267-soft)}
.kvk-customer-delivery-otp-v39267 strong{letter-spacing:.05em}

/* Delivery slide. */
.kvk-slide-deliver-v39267{margin:10px 0;padding:10px;border:1px solid var(--kvk-v39267-line);border-radius:14px;background:var(--kvk-v39267-soft)}
.kvk-slide-deliver-v39267 label{display:flex;justify-content:space-between;gap:8px;margin-bottom:7px;font-weight:900}
.kvk-slide-deliver-v39267 input[type="range"]{display:block!important;width:100%!important;height:42px!important;padding:0!important;accent-color:#15803d!important;cursor:grab!important;background:transparent!important;border:0!important}
.kvk-slide-deliver-v39267 input[type="range"]:active{cursor:grabbing!important}
.kvk-slide-deliver-v39267 small{display:block;color:#456778;font-weight:750}

/* Return orders. */
.kvk-return-orders-v39267{margin-top:14px!important}
.kvk-return-list-v39267{display:grid;gap:10px}
.kvk-return-row-v39267{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px;border:1px solid var(--kvk-v39267-line);border-radius:13px;background:var(--kvk-v39267-soft)}
.kvk-return-row-v39267 .actions{display:flex!important;flex-wrap:nowrap!important;gap:7px!important}

/* Professional password requirement checklist. */
.kvk-password-checklist-v39267{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;margin-top:8px;padding:10px;border:1px solid var(--kvk-v39267-line);border-radius:12px;background:var(--kvk-v39267-soft)}
.kvk-password-rule-v39267{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800;color:#991b1b}
.kvk-password-rule-v39267::before{content:"✕";display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#fee2e2;color:#991b1b;font-size:11px;font-weight:950}
.kvk-password-rule-v39267.pass{color:#166534}.kvk-password-rule-v39267.pass::before{content:"✓";background:#dcfce7;color:#166534}
.kvk-password-error-v39267{margin-top:8px;color:#991b1b;font-size:12px;font-weight:850}

/* Identity-first login surfaces. */
.kvk-identity-login-v39267 .identity-status-v39267{margin:8px 0;padding:9px 10px;border-radius:11px;background:var(--kvk-v39267-soft);font-weight:800}
.kvk-identity-login-v39267 .identity-status-v39267.warn{border:1px solid #f59e0b}.kvk-identity-login-v39267 .identity-status-v39267.ok{border:1px solid #16a34a}
.kvk-store-selector-v39267{display:grid;gap:7px;margin-top:8px}

/* Logbook v39267 retains Report Generator styling and fixes shortcut ownership. */
.logbook-panel-v39267 .logbook-filter-field-v39266>label,
.logbook-panel-v39267 .logbook-date-field-wrap-v39266>label{display:block!important;margin:0 0 5px!important;font-size:12px!important;font-weight:900!important;color:#294f61!important}
.logbook-panel-v39267 .professional-date-field-v39200{min-height:44px!important;overflow:visible!important}
.logbook-panel-v39267 .professional-date-display-v39200{height:44px!important;min-height:44px!important}
.logbook-panel-v39267 .professional-date-button-v39200{height:44px!important;min-height:44px!important}

/* Map container is never white while tiles progressively arrive. */
.google-map-box-v39197,.kvk-live-map-v39262,.map-frame,.map-card,[id*="MapV39"]{
  background:linear-gradient(135deg,rgba(191,224,231,.96),rgba(221,240,241,.96))!important
}
.kvk-map-loading-v39267{position:relative!important;min-height:210px!important;overflow:hidden!important}
.kvk-map-loading-v39267::before{content:"Map loading…";position:absolute;inset:0;display:grid;place-items:center;color:#294f61;font-weight:900;background:linear-gradient(135deg,rgba(191,224,231,.96),rgba(221,240,241,.96));z-index:0}
.kvk-map-ready-v39267::before{display:none!important}

/* No blank/cover/splash/body hiding. */
html.kvk-booting-v39259 body,html.kvk-booting-v39265 body,html.kvk-booting-v39266 body{opacity:1!important;visibility:visible!important;pointer-events:auto!important}

@media(max-width:760px){
  .kvk-password-checklist-v39267{grid-template-columns:1fr}
  .kvk-return-row-v39267{grid-template-columns:1fr}
  html body[data-role] .pg-row-v39202>.actions .btn{flex:0 0 145px!important}
}
@media print{.kvk-refund-status-v39267 .btn,.kvk-customer-delivery-otp-v39267 .btn,.kvk-slide-deliver-v39267,.kvk-return-orders-v39267{display:none!important}}
