/* Floating-cart fast checkout ------------------------------------------------ */
.wcr-spc-pickup-only-notice {
  display: block;
  margin-top: 5px;
  color: #c1121f !important;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}
.wcr-spc-quick-view {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  overflow: hidden;
}
.wcr-spc-quick-view[hidden] { display: none !important; }
.wcr-spc-quick-head {
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  box-sizing: border-box;
  flex: 0 0 auto;
}
.wcr-spc-quick-head strong,
.wcr-spc-quick-head span { letter-spacing: 0; }
.wcr-spc-quick-head > div strong {
  display: block;
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}
.wcr-spc-quick-head > div span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
}
.wcr-spc-back,
.wcr-spc-close,
.wcr-spc-lock {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe2ea;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  padding: 0;
  box-sizing: border-box;
}
.wcr-spc-back,
.wcr-spc-close { cursor: pointer; }
.wcr-spc-back svg,
.wcr-spc-close svg,
.wcr-spc-lock svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wcr-spc-lock {
  width: 32px;
  height: 32px;
  border: 0;
  color: #15803d;
  background: #f0fdf4;
}
.wcr-spc-lock svg { width: 17px; height: 17px; }
.wcr-spc-head-actions { display: inline-flex !important; align-items: center; gap: 6px; }
.wcr-spc-frame-wrap {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  background: #f8fafc;
}
.wcr-spc-frame-wrap iframe {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f8fafc;
}
.wcr-spc-frame-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}
.wcr-spc-frame-loading span {
  width: 26px;
  height: 26px;
  border: 3px solid #dbe2ea;
  border-top-color: #111827;
  border-radius: 50%;
  animation: wcrSpcSpin .7s linear infinite;
}
.wcr-spc-frame-wrap.is-loaded .wcr-spc-frame-loading { display: none; }
@keyframes wcrSpcSpin { to { transform: rotate(360deg); } }

#wcr-cart-panel.wcr-spc-mode > .wcr-cart-panel-inner { height: 100%; }
#wcr-cart-panel.wcr-spc-mode .wcr-cart-sheet-handle,
#wcr-cart-panel.wcr-spc-mode > .wcr-cart-panel-inner > .wcr-cart-panel-head,
#wcr-cart-panel.wcr-spc-mode > .wcr-cart-panel-inner > .wcr-cart-period-bar,
#wcr-cart-panel.wcr-spc-mode > .wcr-cart-panel-inner > .wcr-cart-items,
#wcr-cart-panel.wcr-spc-mode > .wcr-cart-panel-inner > .wcr-cart-panel-foot,
#wcr-cart-panel.wcr-spc-mode > .wcr-cart-panel-inner > .wcr-cart-times-panel { display: none !important; }

@media (min-width: 601px) {
  body.wcr-cart-open #wcr-cart-panel.wcr-cart-panel.wcr-spc-mode,
  #wcr-cart-panel.wcr-cart-panel.wcr-spc-mode.is-open {
    width: min(920px, calc(100vw - 48px)) !important;
    max-width: 920px !important;
    height: min(88dvh, 880px) !important;
    max-height: min(88dvh, 880px) !important;
  }
  body.wcr-cart-open #wcr-cart-panel.wcr-spc-mode .wcr-cart-panel-inner,
  #wcr-cart-panel.wcr-spc-mode .wcr-cart-panel-inner {
    height: min(88dvh, 880px) !important;
    max-height: min(88dvh, 880px) !important;
  }
}

@media (max-width: 600px) {
  body.wcr-cart-open #wcr-cart-panel.wcr-cart-panel.wcr-spc-mode,
  #wcr-cart-panel.wcr-cart-panel.wcr-spc-mode.is-open {
    bottom: -1px !important;
    width: 100% !important;
    height: calc(96dvh + 1px) !important;
    max-height: calc(96dvh + 1px) !important;
    border-radius: 14px 14px 0 0 !important;
  }
  body.wcr-cart-open #wcr-cart-panel.wcr-spc-mode .wcr-cart-panel-inner,
  #wcr-cart-panel.wcr-spc-mode .wcr-cart-panel-inner {
    height: calc(96dvh + 1px) !important;
    max-height: calc(96dvh + 1px) !important;
    padding-bottom: max(1px, env(safe-area-inset-bottom, 0px)) !important;
  }
  .wcr-spc-quick-head {
    min-height: 66px;
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
  }
  .wcr-spc-lock { display: none; }
}

/* Compact checkout inside the same-origin iframe --------------------------- */
body.wcr-spc-quick-checkout {
  margin: 0 !important;
  min-width: 0 !important;
  background: #f8fafc !important;
  color: #111827;
}
body.wcr-spc-quick-checkout #wpadminbar,
body.wcr-spc-quick-checkout .site-header,
body.wcr-spc-quick-checkout #masthead,
body.wcr-spc-quick-checkout header.site-header,
body.wcr-spc-quick-checkout .main-header-bar,
body.wcr-spc-quick-checkout .site-footer,
body.wcr-spc-quick-checkout #colophon,
body.wcr-spc-quick-checkout footer.site-footer,
body.wcr-spc-quick-checkout .woocommerce-breadcrumb,
body.wcr-spc-quick-checkout .page-header,
body.wcr-spc-quick-checkout .entry-header,
body.wcr-spc-quick-checkout .woocommerce-form-coupon-toggle { display: none !important; }
body.wcr-spc-quick-checkout.admin-bar { margin-top: 0 !important; }
body.wcr-spc-quick-checkout #page,
body.wcr-spc-quick-checkout .site,
body.wcr-spc-quick-checkout #content,
body.wcr-spc-quick-checkout .site-content,
body.wcr-spc-quick-checkout #primary,
body.wcr-spc-quick-checkout .content-area,
body.wcr-spc-quick-checkout main,
body.wcr-spc-quick-checkout .entry-content {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
body.wcr-spc-quick-checkout .woocommerce {
  width: min(720px, 100%) !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 18px !important;
  box-sizing: border-box;
}
body.wcr-spc-quick-checkout form.checkout {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
body.wcr-spc-quick-checkout form.checkout > * { visibility: visible !important; }
body.wcr-spc-quick-checkout form.checkout:before,
body.wcr-spc-quick-checkout form.checkout:after { display: none !important; }
body.wcr-spc-quick-checkout #customer_details,
body.wcr-spc-quick-checkout #customer_details .col-1 {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
body.wcr-spc-quick-checkout #customer_details .col-2,
body.wcr-spc-quick-checkout .woocommerce-shipping-fields,
body.wcr-spc-quick-checkout .shipping_address { display: none !important; }
body.wcr-spc-quick-checkout .woocommerce-billing-fields,
body.wcr-spc-quick-checkout .wcr-spc-pickup-card,
body.wcr-spc-quick-checkout #order_review {
  margin: 0 0 14px !important;
  padding: 16px !important;
  border: 1px solid #dfe5ec !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  box-sizing: border-box;
}
body.wcr-spc-quick-checkout .woocommerce-billing-fields > h3,
body.wcr-spc-quick-checkout #order_review_heading {
  display: block !important;
  margin: 0 0 13px !important;
  color: #111827 !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
body.wcr-spc-quick-checkout #order_review_heading { padding: 2px 0 0 !important; }
body.wcr-spc-quick-checkout .form-row {
  width: 100% !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  float: none !important;
  box-sizing: border-box;
}
body.wcr-spc-quick-checkout .form-row label {
  display: block;
  margin: 0 0 5px;
  color: #334155;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
}
body.wcr-spc-quick-checkout .form-row input.input-text,
body.wcr-spc-quick-checkout .form-row input[type="date"],
body.wcr-spc-quick-checkout .form-row select,
body.wcr-spc-quick-checkout .select2-container .select2-selection--single {
  width: 100% !important;
  min-height: 44px !important;
  padding: 9px 11px !important;
  border: 1px solid #cfd8e3 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
}
.wcr-spc-pickup-title {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 13px;
}
.wcr-spc-pickup-title h3 {
  margin: 0 !important;
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}
.wcr-spc-pickup-title p {
  margin: 3px 0 0 !important;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}
.wcr-spc-pickup-title > strong {
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
}
.wcr-spc-pickup-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #166534;
  background: #f0fdf4;
}
.wcr-spc-pickup-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wcr-spc-address {
  margin: 0 0 13px !important;
  padding: 9px 10px;
  border-left: 3px solid #16a34a;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
}
.wcr-spc-pickup-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}
.wcr-spc-pickup-grid .form-row { margin: 0 !important; }
body.wcr-spc-quick-checkout #order_review table.shop_table {
  width: 100%;
  margin: 0 0 14px;
  border: 0;
  border-collapse: collapse;
}
body.wcr-spc-quick-checkout #order_review table.shop_table th,
body.wcr-spc-quick-checkout #order_review table.shop_table td {
  padding: 9px 4px;
  border-bottom: 1px solid #eef2f6;
  color: #334155;
  font-size: 12px;
}
body.wcr-spc-quick-checkout #payment {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.wcr-spc-quick-checkout #payment ul.payment_methods {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
}
body.wcr-spc-quick-checkout #payment .place-order { padding: 0 !important; }
body.wcr-spc-quick-checkout #place_order {
  width: 100% !important;
  min-height: 50px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: var(--wcr-cart-btn-bg, #111827) !important;
  color: var(--wcr-cart-btn-text, #fff) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.wcr-spc-order-pickup {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
}
.wcr-spc-order-pickup h2 { margin: 0 0 8px; font-size: 18px; }
.wcr-spc-order-pickup p { margin: 0; }

@media (max-width: 520px) {
  body.wcr-spc-quick-checkout .woocommerce { padding: 10px !important; }
  body.wcr-spc-quick-checkout .woocommerce-billing-fields,
  body.wcr-spc-quick-checkout .wcr-spc-pickup-card,
  body.wcr-spc-quick-checkout #order_review { padding: 13px !important; }
  .wcr-spc-pickup-grid { grid-template-columns: 1fr; gap: 0; }
  .wcr-spc-pickup-grid .form-row { margin-bottom: 11px !important; }
}
