/* Product-page delivery is a separate, narrow glass-green card, never a price-column item. */
.clx-single-delivery-slot {
  display: block;
  clear: both;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 7px 0 12px;
  box-sizing: border-box;
}
.clx-delivery-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  position: relative;
  isolation: isolate;
  width: fit-content;
  min-width: 0;
  max-width: min(100%, 290px);
  box-sizing: border-box;
  overflow-wrap: anywhere;
  padding: 8px 11px;
  border: 1px solid rgba(43, 139, 89, .35);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(224, 248, 230, .91), rgba(244, 255, 248, .72));
  color: #16432b;
  box-shadow: 0 5px 17px rgba(16, 85, 42, .075), inset 0 1px rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  font: 500 11px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  vertical-align: top;
}
.clx-delivery-card strong { font-size: 12px; line-height: 1.25; font-weight: 750; color: #145234; }
.clx-delivery-card small { font: inherit; font-size: 10px; line-height: 1.32; color: #37664b; white-space: normal; }
.clx-delivery-card--free { min-width: 110px; max-width: 160px; padding: 7px 10px; gap: 1px; }
.clx-delivery-card--auto {
  width: 224px;
  max-width: min(100%, 224px);
  padding: 8px 10px;
  gap: 3px;
}
.clx-delivery-card--auto strong { font-size: 12.5px; }
.clx-delivery-card--auto .clx-delivery-open { min-height: 29px; padding: 6px 9px!important; font-size: 11px!important; }
.clx-delivery-card--custom { max-width: min(100%, 286px); }
.clx-delivery-regions { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.clx-delivery-regions span { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.clx-delivery-regions b { white-space: nowrap; font-weight: 700; }
.clx-delivery-one-fee { display: block; max-width: 255px; padding-top: 4px; border-top: 1px solid rgba(39, 124, 80, .22); }
.clx-delivery-open {
  display: inline-block;
  max-width: 100%;
  min-height: 28px;
  margin-top: 2px;
  padding: 5px 9px !important;
  border: 1px solid #27804b !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.8) !important;
  color: #155438 !important;
  font: 700 10.5px/1.25 system-ui, sans-serif !important;
  white-space: normal !important;
  text-align: left;
  cursor: pointer;
}
.clx-delivery-open:hover,.clx-delivery-open:focus-visible { background: #fff!important; border-color: #145d38!important; }
.clx-delivery-note { padding: 9px 12px; background: #edf8f0; color: #1a4b31; border: 1px solid #b5d8c2; border-radius: 9px; font-size: 12px; }

/* Compact address form that remains visible and scrollable on small phones. */
#clx-delivery-dialog {
  position: fixed;
  inset: 0;
  width: min(354px, calc(100vw - 36px));
  min-width: 0;
  max-width: calc(100vw - 36px);
  max-height: min(74dvh, 530px);
  max-height: min(74vh, 530px);
  margin: auto;
  padding: 17px;
  overflow: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  border: 1px solid rgba(48,132,86,.25);
  border-radius: 18px;
  background: #fcfffc;
  color: #20352a;
  box-shadow: 0 24px 70px rgba(0, 26, 12, .28);
}
@supports (height: 1dvh) { #clx-delivery-dialog { max-height: min(74dvh,530px); } }
#clx-delivery-dialog::backdrop { background: rgba(6,30,18,.46); backdrop-filter: blur(3px); }
#clx-delivery-dialog form { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
#clx-delivery-title { color: #164b30; margin: 0 30px 0 0; font: 750 17px/1.28 system-ui,sans-serif; }
#clx-delivery-dialog .clx-delivery-instructions { font-size: 11px; margin: 0; color: #566b5c; }
#clx-delivery-dialog label { display: block; margin: 0; color: #274b37; font: 650 11px/1.35 system-ui,sans-serif; }
#clx-delivery-dialog input, #clx-delivery-dialog select {
  display: block;
  width: 100%;
  height: 34px;
  margin: 4px 0 0;
  padding: 6px 9px;
  box-sizing: border-box;
  border: 1px solid #aecbb6;
  border-radius: 8px;
  background: #fff;
  color: #223e2d;
  font: 500 12px/1.25 system-ui,sans-serif;
}
#clx-delivery-dialog details { border: 1px solid #d3e4d8; background: #f5fbf7; border-radius: 9px; padding: 7px 9px; }
#clx-delivery-dialog details summary { font-size: 11px; font-weight: 650; color: #32644a; cursor: pointer; }
#clx-delivery-dialog details label { margin-top: 8px; }
#clx-delivery-dialog button[type="submit"] { min-height: 35px; padding: 7px 11px; border: 0; border-radius: 9px; background: #17633e; color: #fff; cursor: pointer; font: 700 12px/1.3 system-ui,sans-serif; }
#clx-delivery-dialog button[type="submit"]:disabled { opacity: .64; cursor: wait; }
#clx-delivery-dialog .clx-delivery-close { position: absolute; right: 12px; top: 11px; height: 28px; width: 28px; border: 0; border-radius: 50%; background: #e9f4ec; color: #19492f; font-size: 21px; cursor: pointer; }
#clx-delivery-result { margin: 0; padding: 0; color: #204a34; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
#clx-delivery-result:not(:empty) { padding: 9px; border: 1px solid #c3dccb; border-radius: 8px; background: #eaf6ed; }
/* v2.0.98.247 — screenshot-sized purchase actions below the calculated fee. */
#clx-delivery-dialog .clx-delivery-purchase-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
  margin: 2px 0 0;
}
#clx-delivery-dialog .clx-delivery-purchase-actions[hidden] { display: none !important; }
#clx-delivery-dialog .clx-delivery-purchase-actions button {
  display: inline-flex;
  width: auto !important;
  min-width: 0 !important;
  min-height: 32px !important;
  align-items: center;
  justify-content: center;
  padding: 6px 13px !important;
  border-radius: 999px !important;
  font: 700 11px/1.2 system-ui, sans-serif;
  letter-spacing: normal;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
}
#clx-delivery-dialog #clx-delivery-add-cart {
  border: 1px solid #b9d0c2;
  background: #fcfffd !important;
  color: #194a32 !important;
}
#clx-delivery-dialog #clx-delivery-add-cart:hover,
#clx-delivery-dialog #clx-delivery-add-cart:focus-visible {
  border-color: #28744a;
  background: #edf7f0 !important;
}
#clx-delivery-dialog #clx-delivery-buy-now {
  border: 1px solid #15281e;
  background: #15281e !important;
  color: #fff !important;
}
#clx-delivery-dialog #clx-delivery-buy-now:hover,
#clx-delivery-dialog #clx-delivery-buy-now:focus-visible {
  background: #286846 !important;
  border-color: #286846;
  color: #fff !important;
}
@media (max-width: 600px) {
  .clx-single-delivery-slot { margin: 5px 0 9px; max-width: 100%; }
  .clx-delivery-card { max-width: min(100%, 270px); padding: 7px 9px; font-size: 10.5px; }
  .clx-delivery-card--free { max-width: 138px; padding: 6px 9px; }
  .clx-delivery-card--auto {
    width: 252px;
    max-width: min(100%, 252px);
    padding: 9px 10px;
    gap: 4px;
  }
  .clx-delivery-card--auto strong { font-size: 12.5px; }
  .clx-delivery-card--auto .clx-delivery-open { min-height: 31px; padding: 6px 10px!important; font-size: 11.5px!important; }
  #clx-delivery-dialog { width: min(330px,calc(100vw - 34px)); max-width: calc(100vw - 34px); padding: 13px; max-height: 76vh; border-radius: 15px; }
  #clx-delivery-title { font-size: 16px; }
}

/* v2.0.98.245 — dashboard-adjustable mobile card width, default 182px (70%).
   Keep the calculator usable on narrow handsets without changing its popup. */
@media (max-width: 700px) {
  body.single-product .clx-single-delivery-slot .clx-delivery-card--auto {
    width: min(100%, var(--clx-delivery-mobile-width, 182px)) !important;
    max-width: min(100%, var(--clx-delivery-mobile-width, 182px)) !important;
    padding: 7px 9px !important;
    gap: 3px !important;
  }
  body.single-product .clx-single-delivery-slot .clx-delivery-card--auto strong {
    font-size: 11.5px !important;
  }
  body.single-product .clx-single-delivery-slot .clx-delivery-card--auto .clx-delivery-open {
    min-height: 28px !important;
    max-width: 100% !important;
    padding: 5px 7px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    overflow-wrap: normal !important;
  }
}
