/* Buy workspace — pricing-style packs + order summary (admin-purchase) */
.pv-buy-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 340px);
  gap: 22px;
  align-items: start;
}
.pv-buy-main { min-width: 0; }

/* Per-SKU purchase assist (features / connectivity / regions) */
.pv-buy-geo-foot {
  margin-top: 20px;
  padding: 0;
  border: none;
  background: transparent;
  display: block;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.pv-buy-assist {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(0, 3fr);
  gap: 22px 28px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef5ff 52%, #f6f3ff 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.pv-assist-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding-right: 24px;
  border-right: 1px solid rgba(148, 163, 184, 0.28);
}
.pv-assist-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: none;
}
.pv-assist-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 10px 10px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(22, 119, 255, 0.12);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  text-align: center;
}
.pv-assist-stat strong {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pv-assist-stat span {
  font-size: 0.66rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.pv-assist-intro h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.pv-assist-intro p {
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  max-width: 42ch;
}
.pv-assist-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  padding-left: 2px;
}
.pv-assist-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}
.pv-assist-feats li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.4;
  font-weight: 550;
}
.pv-assist-dot {
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: #1677ff;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.14);
}
.pv-assist-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.pv-assist-actions .pv-custom-cta {
  justify-content: center;
  text-align: center;
  padding: 8px 14px;
  font-size: 0.8rem;
  border-radius: 9px;
}
.pv-assist-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1677ff;
  text-decoration: none;
  border-radius: 9px;
}
.pv-assist-link:hover {
  background: rgba(22, 119, 255, 0.08);
  text-decoration: underline;
}

/* Web Scraping API buy — 6-item assist panel */
.pv-buy-assist--unblocker {
  grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.35fr);
  gap: 22px 30px;
  align-items: start;
  padding: 20px 24px 22px;
}
.pv-buy-assist--unblocker .pv-assist-left {
  gap: 14px;
  padding-right: 26px;
  border-right: 1px solid rgba(148, 163, 184, 0.22);
  border-bottom: none;
  padding-bottom: 0;
}
.pv-buy-assist--unblocker .pv-assist-stats {
  max-width: none;
}
.pv-buy-assist--unblocker .pv-assist-stat {
  padding: 9px 8px 8px;
}
.pv-buy-assist--unblocker .pv-assist-stat span {
  white-space: normal;
  text-transform: none;
  font-size: 0.68rem;
  letter-spacing: 0;
  font-weight: 600;
  line-height: 1.3;
}
.pv-buy-assist--unblocker .pv-assist-intro p {
  max-width: none;
  font-size: 0.8rem;
  line-height: 1.55;
}
.pv-buy-assist--unblocker .pv-assist-actions {
  margin-top: 2px;
}
.pv-buy-assist--unblocker .pv-assist-actions .pv-assist-link {
  padding: 0;
  justify-content: flex-start;
  font-size: 0.82rem;
}
.pv-buy-assist--unblocker .pv-assist-right {
  padding-left: 0;
  gap: 0;
  justify-content: flex-start;
}
.pv-buy-assist--unblocker .pv-assist-feats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
.pv-buy-assist--unblocker .pv-assist-feats li {
  align-items: flex-start;
  gap: 9px;
  font-size: 0.78rem;
  line-height: 1.42;
  font-weight: 550;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.pv-buy-assist--unblocker .pv-assist-dot {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border-radius: 4px;
  background: rgba(22, 119, 255, 0.12);
  box-shadow: none;
  position: relative;
}
.pv-buy-assist--unblocker .pv-assist-dot::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #1677ff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .pv-buy-assist {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 18px;
  }
  .pv-assist-left {
    padding-right: 0;
    padding-bottom: 14px;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  }
  .pv-assist-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pv-assist-feats {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .pv-buy-assist--unblocker {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 18px;
  }
  .pv-buy-assist--unblocker .pv-assist-left {
    padding-right: 0;
    padding-bottom: 14px;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  }
  .pv-buy-assist--unblocker .pv-assist-feats {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}


/* Rotating pack grid — 3 columns */
.rotating-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
}
.rotating-pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 2px solid #e8ecf4;
  border-radius: 14px;
  padding: 0;
  min-height: 128px;
  text-align: center;
  background: #fff;
  overflow: visible;
  transition: border-color 0.18s, box-shadow 0.18s;
  user-select: none;
}
.rotating-pack-card:hover {
  border-color: rgba(22, 119, 255, 0.35);
}
.rotating-pack-card.is-selected {
  border-color: #1677ff;
  box-shadow: 0 6px 18px rgba(22, 119, 255, 0.16);
  background: #fff;
}
.rotating-pack-card .pack-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1677ff, #531dab);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.35);
  line-height: 1.25;
}
.rotating-pack-card .pack-badge + .pack-hero {
  padding-top: 18px;
}
.rotating-pack-card .pack-hero {
  padding: 14px 10px 6px;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.rotating-pack-card .pack-hero-num {
  display: inline;
  font-size: 1.55rem;
  font-weight: 500;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.rotating-pack-card .pack-hero-unit {
  display: inline;
  font-size: 0.92rem;
  font-weight: 500;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.rotating-pack-card .pack-hero--paygo {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.2;
  padding-bottom: 8px;
  white-space: nowrap;
}
.rotating-pack-card .pack-hero--custom {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 4px;
}
.rotating-pack-card .pack-unit-price {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1677ff;
  padding: 0 10px 10px;
}
.rotating-pack-card .pack-unit-price small {
  font-size: 0.72rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.9;
}
.rotating-pack-card .pack-foot {
  margin-top: auto;
  padding: 9px 10px;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
}
.rotating-pack-card.is-selected .pack-foot {
  background: rgba(22, 119, 255, 0.06);
  border-top-color: rgba(22, 119, 255, 0.14);
}
.rotating-pack-card .pack-total {
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 4px;
  min-height: 0;
}
.rotating-pack-card .pack-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 500;
  color: #94a3b8;
}
.rotating-pack-card .pack-save {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(82, 196, 26, 0.12);
  color: #389e0d;
}
.rotating-pack-card--custom {
  cursor: default;
}
.rotating-pack-card--custom.is-selected {
  border-color: #1677ff;
  box-shadow: 0 6px 18px rgba(22, 119, 255, 0.16);
}
.rotating-pack-card--custom .sf-custom-k-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px 8px;
}
.rotating-pack-card--custom .sf-custom-k-unit {
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
}
.rotating-pack-card--custom .short-custom-gb-input,
.rotating-pack-card--custom .sf-custom-credits-input {
  width: 100%;
  max-width: 72px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  color: #0f172a;
  background: #fff;
  display: block;
}
.rotating-pack-card--custom.is-selected .short-custom-gb-input,
.rotating-pack-card--custom.is-selected .sf-custom-credits-input {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
}
.rotating-pack-card--custom .pack-custom-hint {
  font-size: 0.68rem;
  line-height: 1.35;
  color: #94a3b8;
  text-align: center;
  padding: 0 8px 10px;
}

/* Order summary card (right rail) */
.pv-order-card {
  position: sticky;
  top: 12px;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
}
.pv-order-card .pv-order-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
}
.pv-order-card .pv-order-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(82, 196, 26, 0.1);
  color: #237804;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 14px;
}
.pv-order-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.pv-order-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: #475569;
}
.pv-order-row strong {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
}
.pv-order-row .pv-order-traffic-val {
  color: #1677ff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.pv-order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid #e8ecf4;
  margin-bottom: 14px;
}
.pv-order-total span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.pv-order-total strong {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.pv-order-note {
  margin: -6px 0 14px;
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: right;
}
.pv-order-checkout {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #531dab, #1677ff);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(22, 119, 255, 0.28);
  transition: opacity 0.15s, transform 0.15s;
}
.pv-order-checkout:hover:not(:disabled) {
  opacity: 0.94;
  transform: translateY(-1px);
}
.pv-order-checkout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.pv-order-trial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #1677ff;
  background: #fff;
  color: #1677ff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.pv-order-trial:hover {
  background: rgba(22, 119, 255, 0.12);
}
.pv-order-trust {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
  text-align: center;
}
.pv-order-trust-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}
.pv-order-trust-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #94a3b8;
}
.pv-order-trust-label strong {
  display: inline;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0;
}
.pv-order-trust-block {
  margin-top: 16px;
}
.pv-order-trust-inline {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  font-size: 0.65rem;
  color: #94a3b8;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
.pv-order-trust-inline-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.pv-order-trust-inline .pv-order-trust-icon {
  width: 10px;
  height: 10px;
  color: #94a3b8;
  flex-shrink: 0;
}
.pv-order-trust-sep {
  color: #cbd5e1;
  font-size: 0.62rem;
  flex-shrink: 0;
}
@media (max-width: 420px) {
  .pv-order-trust-inline {
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 4px;
  }
  .pv-order-trust-sep {
    display: none;
  }
  .pv-order-trust-inline-item {
    flex: 0 0 auto;
  }
}
.pv-order-trust-block .pv-order-trust {
  margin-top: 12px;
}
.pv-order-trust-block .pv-order-pay-brands.joy-pay-available--footer {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.pv-order-trust-block .joy-pay-available__title {
  margin-bottom: 6px;
}

/* Dedicated plan accordion (static / custom) */
.dedicated-plan-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dedicated-plan-block {
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dedicated-plan-block.is-open {
  border-color: #1677ff;
  box-shadow: 0 10px 28px rgba(22, 119, 255, 0.12);
}
.dedicated-plan-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  font: inherit;
  color: inherit;
}
.dedicated-plan-bar-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}
.dedicated-plan-bar-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1677ff, #531dab);
  color: #fff;
  vertical-align: middle;
}
.dedicated-plan-bar-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 4px;
}
.dedicated-plan-bar-price {
  text-align: right;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1677ff;
  white-space: nowrap;
}
.dedicated-plan-bar-price small {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}
.dedicated-plan-chevron {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-left: 8px;
}
.dedicated-plan-expand {
  padding: 0 16px 16px;
}
.dedicated-qty-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}
.dedicated-qty-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}
.dedicated-qty-card {
  display: flex;
  flex-direction: column;
  border: 2px solid #e8ecf4;
  border-radius: 14px;
  padding: 0;
  min-height: 128px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dedicated-qty-card.is-selected {
  border-color: #1677ff;
  box-shadow: 0 6px 18px rgba(22, 119, 255, 0.16);
  background: #fff;
}
.dedicated-qty-card .qty-hero {
  padding: 14px 10px 6px;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.dedicated-qty-card .qty-hero-num {
  display: inline;
  font-size: 1.55rem;
  font-weight: 500;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.dedicated-qty-card .qty-hero-unit {
  display: inline;
  margin-top: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.dedicated-qty-card .qty-hero--paygo {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.2;
  padding-bottom: 8px;
  white-space: nowrap;
}
.dedicated-qty-card .qty-hero--custom {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 4px;
}
.dedicated-qty-card .qty-unit {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1677ff;
  padding: 0 10px 10px;
}
.dedicated-qty-card.is-selected .qty-unit {
  color: #1677ff;
}
.dedicated-qty-card .qty-unit small {
  font-size: 0.72rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.9;
}
.dedicated-qty-card .qty-foot {
  margin-top: auto;
  padding: 9px 10px;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
}
.dedicated-qty-card.is-selected .qty-foot {
  background: rgba(22, 119, 255, 0.06);
  border-top-color: rgba(22, 119, 255, 0.14);
}
.dedicated-qty-card .qty-total {
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  margin-top: 0;
}
.dedicated-qty-card--custom {
  cursor: default;
}
.dedicated-qty-card--custom .dedicated-qty-custom-input {
  width: 100%;
  max-width: 80px;
  margin: 0 auto 8px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #0f172a;
  background: #fff;
  display: block;
  box-sizing: border-box;
}
.dedicated-qty-card--custom.is-selected .dedicated-qty-custom-input {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.12);
}
.dedicated-qty-tier-hint {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #64748b;
}
.pv-order-row strong.pv-order-sellable-warn,
#longOrderCountry.pv-order-sellable-warn,
#longCheckoutCountry.pv-order-sellable-warn {
  color: #cf1322 !important;
  font-weight: 800;
}
.pv-loc-qty-input.is-over-stock,
.dedicated-qty-custom-input.is-over-stock {
  border-color: #ff4d4f !important;
  background: #fff1f0 !important;
  color: #cf1322 !important;
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2) !important;
}
.pv-loc-sub.is-over-stock,
.pv-loc-tray-row.is-over-stock .pv-loc-name {
  color: #cf1322 !important;
  font-weight: 700;
}

.pv-long-geo-block {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  background: #fff;
}

@media (max-width: 960px) {
  .pv-buy-split {
    grid-template-columns: 1fr;
  }
  .pv-order-card {
    position: static;
  }
  .rotating-pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .rotating-pack-grid {
    grid-template-columns: 1fr;
  }
}


/* Static Buy — plan then locations */
.pv-step-block { margin-bottom: 18px; }
.pv-step-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.pv-loc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.pv-loc-head-main { min-width: 0; }
.pv-loc-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pv-loc-reset-all {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
}
.pv-loc-reset-all:hover {
  border-color: #1677ff;
  color: #1677ff;
}
.pv-loc-title {
  margin: 6px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}
.pv-loc-count {
  font-size: 0.88rem;
  color: #475569;
  font-weight: 600;
}
.pv-loc-count strong { color: #0f172a; font-size: 1rem; }
.pv-loc-banner {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 12px;
}
.pv-loc-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.pv-loc-toolbar .pv-loc-search-wrap {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
}
.pv-loc-sort-bar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.pv-loc-sort-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  user-select: none;
}
.pv-loc-sort-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
.pv-loc-sort-btn {
  flex: 0 0 auto;
  min-width: 0;
  padding: 4px 9px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
  color: #64748b;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
}
.pv-loc-sort-btn:hover {
  color: #334155;
}
.pv-loc-sort-btn.is-active {
  background: #fff;
  color: #1677ff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
@media (max-width: 520px) {
  .pv-loc-toolbar {
    flex-wrap: wrap;
  }
  .pv-loc-sort-bar {
    margin-left: auto;
  }
}
.cip-country-list.pv-loc-list {
  max-height: min(220px, 36vh);
  overflow-y: auto;
  margin-bottom: 8px;
  flex: 0 1 auto;
  min-height: 0;
}
.pv-loc-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
  font-size: 0.85rem;
}
.pv-loc-search {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px 11px 36px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.pv-loc-list {
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  background: #fff;
  max-height: 468px;
  overflow: auto;
}
.pv-loc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}
.pv-loc-row:last-child { border-bottom: none; }
.pv-loc-row:hover { background: rgba(22, 119, 255, 0.03); }
.pv-loc-row.is-selected { background: rgba(22, 119, 255, 0.06); }
.pv-loc-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pv-loc-flag {
  width: 28px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}
.pv-loc-flag img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.pv-loc-flag img.is-broken { display: none; }
.pv-loc-flag .lt-flag-fallback { display: none; font-size: 1.1rem; }
.pv-loc-flag img.is-broken + .lt-flag-fallback { display: inline; }
.pv-loc-shuffle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pv-loc-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}
.pv-loc-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}
.pv-loc-qty-box {
  min-width: 44px;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  font-size: 0.88rem;
}
.pv-loc-add {
  padding: 6px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}
.pv-loc-add:hover { border-color: #1677ff; color: #1677ff; }
.pv-loc-add:disabled,
.pv-loc-add[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: #e2e8f0;
  color: #94a3b8;
  background: #f8fafc;
}
.pv-loc-add:disabled:hover,
.pv-loc-add[aria-disabled="true"]:hover {
  border-color: #e2e8f0;
  color: #94a3b8;
}
.pv-loc-added {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(22, 119, 255, 0.1);
  color: #1677ff;
  font-size: 0.78rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.pv-loc-soldout,
.pv-loc-row.is-soldout .pv-loc-sub {
  color: #94a3b8;
}
.pv-loc-soldout {
  padding: 6px 12px;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.pv-loc-selected-tray {
  margin-bottom: 12px;
  margin-top: 0;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px 14px;
}
.pv-loc-tray-head {
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.pv-loc-tray-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pv-loc-tray-block {
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.pv-loc-tray-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
}
.pv-loc-tray-province {
  border-top: 1px solid #f1f5f9;
  padding: 0 12px 10px;
  background: #fafbfc;
}
.pv-loc-tray-province-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 0 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  outline: none;
}
.pv-loc-tray-province-trigger:hover,
.pv-loc-tray-province-trigger:focus-visible {
  color: #1677ff;
}
.pv-loc-tray-province-chevron {
  flex: 0 0 auto;
  width: 14px;
  color: #94a3b8;
  font-size: 0.7rem;
  line-height: 1;
  transition: transform 0.15s ease, color 0.12s;
}
.pv-loc-tray-province-trigger.is-open .pv-loc-tray-province-chevron {
  transform: rotate(90deg);
  color: #1677ff;
}
.pv-loc-tray-province-label {
  flex: 1 1 auto;
  min-width: 0;
}
.pv-loc-tray-province-picked {
  flex: 0 0 auto;
  font-size: 0.75rem;
  color: #0369a1;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0f2fe;
}
.pv-loc-tray-province-panel {
  margin-top: 2px;
  padding-top: 4px;
}
.pv-loc-tray-province-panel[hidden] {
  display: none !important;
}
.pv-loc-tray-province-hint {
  margin: 0 0 6px;
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.4;
}
.pv-loc-tray-province-panel .pv-loc-city-list {
  max-height: min(200px, 32vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pv-loc-tray-province-panel .pv-loc-city-row {
  padding: 7px 8px;
  border-radius: 8px;
}
.pv-loc-tray-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.pv-loc-remove {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.pv-loc-remove:hover {
  border-color: #fca5a5;
  color: #dc2626;
  background: #fef2f2;
}
.pv-loc-city-link-row {
  padding: 0 14px 10px 54px;
  margin-top: -6px;
  border-bottom: 1px solid #f1f5f9;
}
.pv-loc-province-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 0 14px 10px 54px;
  margin-top: -6px;
  border-bottom: 1px solid #f1f5f9;
}
.pv-loc-province-toggle {
  background: none;
  border: none;
  padding: 0;
  color: #1677ff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.pv-loc-province-picked {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}
.pv-loc-province-inline {
  margin: 0 14px 10px 54px;
  padding: 10px 12px;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  background: #fafbfc;
}
.pv-loc-province-hint {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}
.pv-loc-province-empty {
  font-size: 0.82rem;
  color: #94a3b8;
}
.pv-loc-city-toggle {
  background: none;
  border: none;
  padding: 0;
  color: #1677ff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.pv-loc-city-panel {
  margin-top: 10px;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}
.pv-loc-city-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pv-loc-city-list { max-height: 220px; overflow: auto; }
.pv-loc-city-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
}
.pv-loc-city-row:hover { background: #f8fafc; }
.pv-loc-city-row.is-selected { background: rgba(22, 119, 255, 0.08); font-weight: 700; }
.pv-loc-empty {
  padding: 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}


/* Location picker — inside open plan accordion */
.pv-loc-parking { display: none; }
.dedicated-plan-expand .pv-loc-inline {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.pv-loc-inline .pv-loc-list { max-height: 416px; }
.pv-loc-inline {
  padding: 4px 0 0;
}
.pv-loc-qty-input {
  width: 72px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: #0f172a;
  background: #fff;
  flex-shrink: 0;
}
.pv-loc-qty-input::placeholder {
  font-weight: 400;
  font-size: 0.8rem;
  color: #cbd5e1;
}
.pv-loc-qty-input:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}
.pv-loc-qty-input.is-readonly {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}
.pv-loc-remain {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
}

/* Style A: country expand + sub-region qty rows */
.pv-loc-country-block {
  margin-bottom: 8px;
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.pv-loc-country-block .pv-loc-country-row {
  border: none;
  border-radius: 0;
  cursor: default;
  background: #fff;
}
.pv-loc-country-block:has(.pv-loc-country-row.is-selected),
.pv-loc-country-block:has(.pv-loc-country-row.is-expand-open) {
  border-color: #1677ff;
  box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.28);
}
.pv-loc-country-block .pv-loc-country-row.is-selected,
.pv-loc-country-block .pv-loc-country-row.is-expand-open {
  background: #fff;
}
.pv-loc-country-block .pv-loc-country-row.is-expand-open {
  border-bottom: 1px solid #e8ecf4;
}
.pv-loc-country-main {
  align-items: center;
  flex: 1;
  min-width: 0;
}
.pv-loc-country-name {
  flex: 0 0 auto;
  white-space: nowrap;
}
.pv-loc-country-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-left: auto;
  margin-right: 4px;
  min-width: 0;
}
.pv-loc-country-stock {
  margin-top: 0;
  white-space: nowrap;
}
.pv-loc-country-qty {
  width: 64px;
  flex-shrink: 0;
}
.pv-loc-country-qty.is-readonly {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
  cursor: default;
}
.pv-loc-country-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.pv-loc-country-total {
  min-width: 32px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(22, 119, 255, 0.1);
  color: #1677ff;
  font-weight: 800;
  font-size: 0.84rem;
  text-align: center;
}
.pv-loc-expand-toggle {
  display: block;
  margin-top: 0;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1677ff;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: left;
}
.pv-loc-expand-panel {
  border: none;
  border-top: none;
  border-radius: 0;
  background: #fafcff;
  padding: 12px 14px 14px;
  margin: 0;
}
.pv-loc-expand-loading {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}
.pv-loc-expand-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.pv-loc-geo-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: #f1f5f9;
  border-radius: 999px;
}
.pv-loc-geo-tab {
  padding: 5px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}
.pv-loc-geo-tab.is-active {
  background: #0f172a;
  color: #fff;
}
.pv-loc-expand-reset {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  color: #1677ff;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pv-loc-geo-search {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.84rem;
  margin-bottom: 8px;
  background: #fff;
}
.pv-loc-geo-list {
  border: 1px solid #e8ecf4;
  border-radius: 10px;
  background: #fff;
}
.pv-loc-geo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
}
.pv-loc-geo-row:last-child { border-bottom: none; }
.pv-loc-geo-row.is-national { background: #f8fafc; }
.pv-loc-geo-row-name {
  font-size: 0.84rem;
  font-weight: 600;
  min-width: 0;
  line-height: 1.35;
}
.pv-loc-geo-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.pv-loc-geo-stock {
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
}
.pv-loc-geo-qty-label {
  font-size: 0.72rem;
  color: #94a3b8;
}
.pv-loc-qty-input.is-dim {
  color: #cbd5e1;
  background: #f8fafc;
  font-weight: 400;
}
.pv-loc-qty-input.is-dim:not(:placeholder-shown) {
  color: #0f172a;
  font-weight: 700;
}
.pv-order-loc-section { margin-bottom: 4px; }
.pv-order-loc-label { margin-bottom: 6px; }
.pv-order-loc-list { margin-bottom: 8px; }
.pv-order-loc-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pv-order-loc-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.8rem;
  min-width: 0;
}
.pv-order-loc-flag,
.pv-order-loc-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}
.pv-order-loc-flag img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.pv-order-loc-country {
  flex: 0 0 auto;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}
.pv-order-loc-detail {
  flex: 1;
  min-width: 0;
  color: #64748b;
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pv-order-loc-qty {
  font-weight: 800;
  color: #1677ff;
  flex: 0 0 auto;
  white-space: nowrap;
}
.pv-order-loc-line-main { min-width: 0; line-height: 1.35; }
.pv-order-loc-line-main strong {
  display: block;
  font-weight: 700;
  color: #0f172a;
}
.pv-order-loc-line-main span {
  display: block;
  color: #64748b;
  font-size: 0.74rem;
  margin-top: 2px;
}
.pv-order-loc-empty,
.pv-order-loc-warn {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
}
.pv-order-loc-empty {
  color: #94a3b8;
  border: 1px dashed #e2e8f0;
  text-align: center;
}
.pv-order-loc-warn {
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
