/* Ancien prix barré en cas de livraison gratuite */
.cpc-old-free {
  color: #e11d48 !important; /* rouge vif */
}
.cpc-badge-discount del,
.cpc-old-free {
  color: #e11d48 !important;
}
.cpc-badge-discount ins {
  color: #22c55e !important;
  background: none;
  font-weight: 700;
  text-decoration: none;
}
.cpc-badge-discount {
  display: inline-flex;
  align-items: center;
  gap: 24px; /* espace augmenté entre le prix barré et le prix réel */
}
.cpc-badge-gap {
  display: inline-block;
  width: 18px;
}
.cpc-summary-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.cpc-summary-pay {
  width: 100%;
  border: 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #2563eb 0%, #f97316 100%);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  gap: 12px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  animation: cpc-pay-in 360ms ease;
}

.cpc-summary-pay span {
  color: #eef2ff;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 20px;
}

.cpc-summary-pay strong {
  font-size: 20px;
  color: #ffffff;
  font-weight: 800;
}

.cpc-summary-pay:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.34);
  background: linear-gradient(135deg, #1d4ed8 0%, #fb923c 100%);
}

.cpc-summary-pay:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(30, 58, 138, 0.12);
}

.cpc-pay-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #1e3a8a;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  font-size: 12px;
  font-weight: 600;
  animation: cpc-pay-in 420ms ease;
}

.cpc-pay-note .cpc-note-dot {
  width: 16px;
  height: 16px;
  font-size: 10px;
  border-color: #c7d2fe;
}

.woocommerce-checkout-payment .wc_payment_method label img.cpc-payment-icon {
  width: 72px;
  height: auto;
  margin: 0 auto 8px;
  display: block;
}

.woocommerce-checkout-payment .wc_payment_methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .woocommerce-checkout-payment .wc_payment_methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .woocommerce-checkout-payment .wc_payment_methods {
    grid-template-columns: 1fr;
  }
}

.woocommerce-checkout-payment .wc_payment_method {
  margin: 0;
  position: relative;
}

.woocommerce-checkout-payment .wc_payment_method input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.woocommerce-checkout-payment .wc_payment_method label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 140px;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid #d1d5db;
  background: #ffffff;
  font-weight: 600;
  color: #111827;
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.woocommerce-checkout-payment .wc_payment_method input[type="radio"]:focus + label,
.woocommerce-checkout-payment .wc_payment_method input[type="radio"]:checked + label {
  border-color: #2563eb;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.2);
  transform: translateY(-2px) scale(1.01);
}

.woocommerce-checkout-payment .wc_payment_method input[type="radio"]:checked + label {
  background: #eef2ff;
}

.woocommerce-checkout-payment .payment_box {
  display: none;
}

.cpc-invalid,
.cpc-invalid input,
.cpc-invalid select,
.cpc-invalid textarea,
input.cpc-invalid,
select.cpc-invalid,
textarea.cpc-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.cpc-checkout .form-row.cpc-invalid {
  border-color: transparent !important;
  box-shadow: none !important;
}

.woocommerce-invalid input,
.woocommerce-invalid select,
.woocommerce-invalid textarea,
.woocommerce-invalid .input-text,
.woocommerce-invalid .select2-selection {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.cpc-checkout .woocommerce-notices-wrapper,
.cpc-checkout .woocommerce-error,
.cpc-checkout .woocommerce-message,
.cpc-checkout .woocommerce-info {
  display: none !important;
}

.cpc-checkout .form-row .woocommerce-error,
.cpc-checkout .form-row .woocommerce-error-message,
.cpc-checkout .form-row .error,
.cpc-checkout .form-row .validation_error {
  display: none !important;
}

.cpc-checkout .form-row .description,
.cpc-checkout .form-row [id$="_description"],
.cpc-checkout .form-row [id$="-description"] {
  display: none !important;
}

.cpc-inline-error {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
}

@keyframes cpc-pay-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
:root {
  --cpc-primary: #ff7a45;
  --cpc-success: #22c55e;
  --cpc-bg: #f6f7fb;
  --cpc-card: #ffffff;
  --cpc-border: #e5e7eb;
  --cpc-text: #111827;
  --cpc-muted: #6b7280;
  --cpc-accent: #1e3a8a;
}


.cpc-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 10px auto 32px;
  max-width: 1180px;
  padding: 0 14px;
}

.cpc-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

@media (max-width: 980px) {
  .cpc-columns {
    grid-template-columns: 1fr;
  }
}

.cpc-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: auto;
  align-items: start;
  column-gap: 12px;
  row-gap: 0;
}

.cpc-page-header-left {
  grid-column: 1 / 2;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.cpc-page-header .cpc-header-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 3;
  text-align: right;
  transform: translateX(-150px);
}

.cpc-page-header .cpc-back-link {
  transform: none;
}

.cpc-auth-link {
  order: -1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  visibility: visible;
  opacity: 1;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #fb923c;
  background: #fff7ed;
  color: #ea580c;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cpc-auth-link:hover {
  background: #ffedd5;
  border-color: #f97316;
}

/* Cart page first step layout */
.woocommerce-cart .cart-collaterals {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  background: #ffffff;
  border: 1px solid #d5dae2;
  border-radius: 10px;
  padding: 24px;
  box-shadow: none;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
  margin: 0 0 16px;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
  border: 0;
  background: transparent;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr {
  border-top: 1px solid #d1d8e0;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr:first-child {
  border-top: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.shipping {
  display: none;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
  border: 0;
  border-left: 0 !important;
  border-right: 0 !important;
  padding: 14px 0;
  background: transparent;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
  text-align: right;
}

.woocommerce-cart .cart-collaterals .cart_totals tr.shipping th,
.woocommerce-cart .cart-collaterals .cart_totals tr.shipping td {
  padding-bottom: 8px;
}

.woocommerce-cart .cart-collaterals .cart_totals tr.cpc-cart-shipping-row th,
.woocommerce-cart .cart-collaterals .cart_totals tr.cpc-cart-shipping-row td {
  padding-bottom: 8px;
}

.woocommerce-cart .wc-proceed-to-checkout {
  padding-top: 10px;
}

.woocommerce-cart .cart-collaterals .cart_totals tr.cpc-cart-delivery-hint {
  border-top: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals tr.cpc-cart-delivery-hint td {
  padding-top: 0;
  padding-bottom: 16px;
  text-align: left;
}

.woocommerce-cart .cart-collaterals .cart_totals tr.cpc-cart-delivery-hint p {
  margin: 0;
  line-height: 1.35;
}

.woocommerce-cart .cart-collaterals .cart_totals .cpc-cart-delivery-form {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

.woocommerce-cart .cart-collaterals .cart_totals .cpc-cart-step-field {
  margin: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #d7dde7;
  min-height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.woocommerce-cart .cart-collaterals .cart_totals .cpc-cart-step-field:last-child {
  border-bottom: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals .cpc-cart-step-field::after {
  content: "\25BE";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #111827;
  pointer-events: none;
}

.woocommerce-cart .cart-collaterals .cart_totals .cpc-cart-step-inline-label {
  flex: 0 0 auto;
  min-width: 68px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  text-align: left;
  color: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.2;
}

.woocommerce-cart .cart-collaterals .cart_totals .cpc-cart-step-inline-label-method {
  min-width: 104px;
}

.woocommerce-cart .cart-collaterals .cart_totals .cpc-cart-step-select {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0 !important;
  background: transparent;
  padding: 0 20px 0 0;
  height: 36px;
  box-shadow: none !important;
  color: inherit;
  font: inherit;
  font-size: 0.95em;
  line-height: 1.2;
}

.woocommerce-cart .cart-collaterals .cart_totals .cpc-cart-step-select:focus {
  outline: none;
}

.woocommerce-cart .cart-collaterals .cart_totals .cpc-cart-step-select option {
  color: #111827;
}

@media (max-width: 480px) {
  .woocommerce-cart .cart-collaterals .cart_totals .cpc-cart-step-inline-label {
    min-width: 70px;
  }

  .woocommerce-cart .cart-collaterals .cart_totals .cpc-cart-step-inline-label-method {
    min-width: 96px;
  }
}

.woocommerce-cart .cart-collaterals .cart_totals .cpc-cart-choose-delivery {
  display: inline-block;
  margin-top: 10px;
  color: #1399e2;
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-cart .cart-collaterals .cart_totals .cpc-cart-choose-delivery:hover,
.woocommerce-cart .cart-collaterals .cart_totals .cpc-cart-choose-delivery:focus {
  text-decoration: underline;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: #1674d2;
  color: #ffffff;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:focus {
  background: #0f5fb0;
  color: #ffffff;
}

.cpc-page-header .cpc-page-summary-title {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: end;
  text-align: center;
  margin-left: 0;
  transform: translateX(-110px);
  padding: 6px 14px;
  border-radius: 999px;
  background: #facc15;
  color: #111827;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid #d4a60d;
  box-shadow: 0 10px 20px rgba(250, 204, 21, 0.35);
}

@media (max-width: 980px) {
  .cpc-page-header {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 8px;
  }

  .cpc-page-header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cpc-page-header .cpc-header-actions {
    margin-left: 0;
    transform: none;
    gap: 8px;
    flex-wrap: wrap;
  }

  .cpc-page-header .cpc-back-link,
  .cpc-page-header .cpc-page-summary-title {
    padding: 6px 14px;
    border-radius: 999px;
    background: #facc15;
    color: #111827;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: 1px solid #d4a60d;
    box-shadow: 0 10px 20px rgba(250, 204, 21, 0.35);
  }

}

.cpc-page-title {
  min-width: 0;
  margin-top: 0;
  max-width: 560px;
  transform: none;
}

@media (max-width: 980px) {
  .cpc-page-title {
    transform: none;
  }
}

.cpc-page-title h1 {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--cpc-text);
}

.cpc-page-title p {
  margin: 0;
  color: var(--cpc-muted);
  font-size: 14px;
}

.cpc-page-summary-title {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  justify-self: start;
}


.cpc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--cpc-accent);
  text-decoration: none;
  white-space: nowrap;
  justify-self: center;
}

.cpc-phone-row {
  margin: 0;
}

.cpc-phone-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.cpc-phone-field.has-phone-pop .cpc-phone-input {
  padding-right: 120px;
}

.cpc-phone-pop {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.cpc-phone-field:focus-within {
  box-shadow: none !important;
  outline: none !important;
}

.cpc-phone-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
  min-width: 68px;
  border-right: none;
  background: #ffffff;
  white-space: nowrap;
}

.cpc-phone-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  flex: 0 0 16px;
}

.cpc-phone-icon svg {
  width: 16px;
  height: 16px;
}

.cpc-phone-field:focus-within::after {
  content: '';
  position: absolute;
  left: 68px;
  top: 20%;
  width: 1px;
  height: 60%;
  background: #e2e8f0;
}

.cpc-phone-flag {
  font-size: 40px;
  line-height: 1;
  display: inline-flex;
  align-self: center;
}

.cpc-phone-flag img,
.cpc-phone-prefix img,
.cpc-phone-flag svg,
.cpc-phone-prefix svg {
  width: 40px;
  height: 40px;
  display: block;
}

.cpc-phone-code {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  line-height: 1;
}

.cpc-phone-input {
  height: 48px;
  border: none !important;
  outline: none;
  padding: 0 12px;
  font-size: 14px;
  background: transparent;
  box-shadow: none !important;
  border-color: transparent !important;
}

.cpc-phone-input:focus {
  outline: none;
  box-shadow: none !important;
  border-color: transparent !important;
}

.cpc-phone-row .input-text:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.cpc-phone-input::placeholder {
  color: #64748b;
}

.cpc-phone-row abbr.required {
  text-decoration: none;
  border: 0;
}

.cpc-section-label {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cpc-field .input-text,
.cpc-field select,
.cpc-field .select2-selection--single {
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px 16px;
  padding-left: 38px;
  padding-right: 34px;
}

.cpc-field .select2-selection--single {
  padding-left: 0;
  position: relative;
}

.cpc-field .select2-selection--single .select2-selection__rendered {
  padding-left: 38px !important;
  line-height: 46px;
  padding-right: 32px !important;
}

.cpc-field select,
.cpc-field .select2-selection--single {
  background-position: 12px center, right 12px center;
  background-size: 16px 16px, 12px 12px;
  background-repeat: no-repeat, no-repeat;
  background-image: none;
}

.cpc-field:focus-within .input-text,
.cpc-field:focus-within select,
.cpc-field:focus-within .select2-selection--single {
  background-image: linear-gradient(#e2e8f0, #e2e8f0), var(--cpc-field-icon, none);
  background-repeat: no-repeat, no-repeat;
  background-size: 1px 60%, 16px 16px;
  background-position: 36px center, 12px center;
}

.cpc-field .select2-selection--single .select2-selection__arrow {
  display: block;
  right: 10px;
}

.cpc-field .select2-selection--single .select2-selection__arrow b {
  border-color: #64748b transparent transparent;
}

.cpc-field .select2-selection--single .select2-selection__clear {
  display: none;
  position: absolute !important;
  right: 10px !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 18px;
  color: #94a3b8;
  z-index: 2;
  float: none !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.cpc-select-has-value .select2-selection__arrow {
  visibility: hidden !important;
  opacity: 0 !important;
}

.cpc-select-has-value .select2-selection__arrow b {
  display: none !important;
}

.cpc-select-has-value.select2-container .select2-selection__arrow,
.cpc-select-has-value.select2-container .select2-selection__arrow b {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.cpc-select-has-value .select2-selection__clear {
  display: block !important;
}

.cpc-select-has-value .select2-selection__rendered {
  padding-right: 32px !important;
}

.cpc-field-name .input-text,
.cpc-field-name select,
.cpc-field-name .select2-selection--single,
.cpc-field-surname .input-text,
.cpc-field-surname select,
.cpc-field-surname .select2-selection--single {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%233b82f6%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M4%2020c2.2-4%2013.8-4%2016%200%22/%3E%3C/svg%3E");
  --cpc-field-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%233b82f6%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M4%2020c2.2-4%2013.8-4%2016%200%22/%3E%3C/svg%3E");
}

.cpc-field-email .input-text,
.cpc-field-email select,
.cpc-field-email .select2-selection--single {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23f59e0b%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%2218%22%20height%3D%2212%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M3%207l9%206%209-6%22/%3E%3C/svg%3E");
  --cpc-field-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23f59e0b%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%2218%22%20height%3D%2212%22%20rx%3D%222%22/%3E%3Cpath%20d%3D%22M3%207l9%206%209-6%22/%3E%3C/svg%3E");
}

.cpc-field-city .input-text,
.cpc-field-city select,
.cpc-field-city .select2-selection--single {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%230ea5e9%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2022s7-7%207-12a7%207%200%201%200-14%200c0%205%207%2012%207%2012z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%222.5%22/%3E%3C/svg%3E");
  --cpc-field-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%230ea5e9%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2022s7-7%207-12a7%207%200%201%200-14%200c0%205%207%2012%207%2012z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%222.5%22/%3E%3C/svg%3E");
}

.cpc-field-quartier .input-text,
.cpc-field-quartier select,
.cpc-field-quartier .select2-selection--single {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%236366f1%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206l6-2%206%202%206-2v14l-6%202-6-2-6%202z%22/%3E%3Cpath%20d%3D%22M9%204v14%22/%3E%3Cpath%20d%3D%22M15%206v14%22/%3E%3C/svg%3E");
  --cpc-field-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%236366f1%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206l6-2%206%202%206-2v14l-6%202-6-2-6%202z%22/%3E%3Cpath%20d%3D%22M9%204v14%22/%3E%3Cpath%20d%3D%22M15%206v14%22/%3E%3C/svg%3E");
}

.cpc-select-has-value .select2-selection--single {
  background-image: var(--cpc-field-icon) !important;
  background-position: 12px center !important;
  background-size: 16px 16px !important;
}

.cpc-field-phone2 .input-text,
.cpc-field-phone2 select,
.cpc-field-phone2 .select2-selection--single {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%230f172a%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M22%2016.92v3a2%202%200%200%201-2.18%202%2019.79%2019.79%200%200%201-8.63-3.07%2019.5%2019.5%200%200%201-6-6A19.79%2019.79%200%200%201%202.08%204.18%202%202%200%200%201%204.06%202h3a2%202%200%200%201%202%201.72l.5%202.5a2%202%200%200%201-.55%201.82L7.91%209.91a16%2016%200%200%200%206.17%206.17l1.87-1.87a2%202%200%200%201%201.82-.55l2.5.5a2%202%200%200%201%201.72%202z%22/%3E%3C/svg%3E");
  --cpc-field-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%230f172a%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M22%2016.92v3a2%202%200%200%201-2.18%202%2019.79%2019.79%200%200%201-8.63-3.07%2019.5%2019.5%200%200%201-6-6A19.79%2019.79%200%200%201%202.08%204.18%202%202%200%200%201%204.06%202h3a2%202%200%200%201%202%201.72l.5%202.5a2%202%200%200%201-.55%201.82L7.91%209.91a16%2016%200%200%200%206.17%206.17l1.87-1.87a2%202%200%200%201%201.82-.55l2.5.5a2%202%200%200%201%201.72%202z%22/%3E%3C/svg%3E");
}

.cpc-field-whatsapp .input-text,
.cpc-field-whatsapp select,
.cpc-field-whatsapp .select2-selection--single {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20512%20512%22%3E%3Cpath%20fill%3D%22%2320A83E%22%20d%3D%22M437.019%2C74.98C388.668%2C26.628%2C324.38%2C0%2C256%2C0S123.333%2C26.628%2C74.98%2C74.98S0%2C187.62%2C0%2C256c0%2C51.485%2C15.154%2C100.938%2C43.874%2C143.34L0.69%2C500.106c-1.343%2C3.134-0.607%2C6.966%2C1.798%2C9.381c2.495%2C2.506%2C6.519%2C3.206%2C9.714%2C1.684l96.358-45.885C151.858%2C495.866%2C202.721%2C512%2C256%2C512c68.38%2C0%2C132.668-26.628%2C181.019-74.98C485.371%2C388.667%2C512%2C324.38%2C512%2C256S485.371%2C123.333%2C437.019%2C74.98z%22/%3E%3Ccircle%20fill%3D%22%23E5E5E5%22%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22213.333%22/%3E%3Ccircle%20fill%3D%22%23FFFFFF%22%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22187.733%22/%3E%3Cpath%20fill%3D%22%2320A83E%22%20d%3D%22M392.391%2C342.641l-7.673-41.561c-0.635-3.432-3.295-6.133-6.718-6.818l-60.339-12.067c-2.802-0.559-5.691%2C0.317-7.709%2C2.334l-24.514%2C24.514c-41.302-18.507-64.226-41.478-84.396-84.555l24.435-24.436c2.018-2.017%2C2.893-4.91%2C2.334-7.708l-12.068-60.34c-0.685-3.423-3.386-6.084-6.819-6.718l-41.561-7.673c-1.138-0.21-2.31-0.187-3.44%2C0.07c-10.974%2C2.494-20.987%2C8.023-28.956%2C15.994c-13.801%2C13.801-19.075%2C33.938-15.252%2C58.237c6.418%2C40.801%2C26.409%2C97.583%2C63.289%2C134.61l0.502%2C0.5c37.001%2C36.855%2C93.782%2C56.846%2C134.583%2C63.265c5.14%2C0.809%2C10.092%2C1.21%2C14.838%2C1.21c17.694%2C0%2C32.517-5.581%2C43.4-16.462c7.97-7.971%2C13.5-17.984%2C15.993-28.957C392.578%2C344.951%2C392.602%2C343.78%2C392.391%2C342.641z%22/%3E%3Cpath%20fill%3D%22%23189433%22%20d%3D%22M349.996%2C376.428c-4.747%2C0-9.698-0.401-14.838-1.21c-40.801-6.419-97.583-26.41-134.583-63.265l-0.502-0.5c-36.88-37.027-56.87-93.809-63.289-134.61c-3.323-21.118%2C0.236-39.088%2C10.283-52.492c-4.388%2C2.565-8.458%2C5.689-12.097%2C9.328c-13.801%2C13.801-19.075%2C33.938-15.252%2C58.237c6.418%2C40.801%2C26.409%2C97.583%2C63.289%2C134.61l0.502%2C0.5c37.001%2C36.855%2C93.782%2C56.846%2C134.583%2C63.265c5.14%2C0.809%2C10.092%2C1.21%2C14.838%2C1.21c17.694%2C0%2C32.517-5.581%2C43.4-16.462c1.974-1.974%2C3.797-4.075%2C5.463-6.284C372.747%2C373.836%2C362.037%2C376.428%2C349.996%2C376.428z%22/%3E%3C/svg%3E");
  --cpc-field-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20512%20512%22%3E%3Cpath%20fill%3D%22%2320A83E%22%20d%3D%22M437.019%2C74.98C388.668%2C26.628%2C324.38%2C0%2C256%2C0S123.333%2C26.628%2C74.98%2C74.98S0%2C187.62%2C0%2C256c0%2C51.485%2C15.154%2C100.938%2C43.874%2C143.34L0.69%2C500.106c-1.343%2C3.134-0.607%2C6.966%2C1.798%2C9.381c2.495%2C2.506%2C6.519%2C3.206%2C9.714%2C1.684l96.358-45.885C151.858%2C495.866%2C202.721%2C512%2C256%2C512c68.38%2C0%2C132.668-26.628%2C181.019-74.98C485.371%2C388.667%2C512%2C324.38%2C512%2C256S485.371%2C123.333%2C437.019%2C74.98z%22/%3E%3Ccircle%20fill%3D%22%23E5E5E5%22%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22213.333%22/%3E%3Ccircle%20fill%3D%22%23FFFFFF%22%20cx%3D%22256%22%20cy%3D%22256%22%20r%3D%22187.733%22/%3E%3Cpath%20fill%3D%22%2320A83E%22%20d%3D%22M392.391%2C342.641l-7.673-41.561c-0.635-3.432-3.295-6.133-6.718-6.818l-60.339-12.067c-2.802-0.559-5.691%2C0.317-7.709%2C2.334l-24.514%2C24.514c-41.302-18.507-64.226-41.478-84.396-84.555l24.435-24.436c2.018-2.017%2C2.893-4.91%2C2.334-7.708l-12.068-60.34c-0.685-3.423-3.386-6.084-6.819-6.718l-41.561-7.673c-1.138-0.21-2.31-0.187-3.44%2C0.07c-10.974%2C2.494-20.987%2C8.023-28.956%2C15.994c-13.801%2C13.801-19.075%2C33.938-15.252%2C58.237c6.418%2C40.801%2C26.409%2C97.583%2C63.289%2C134.61l0.502%2C0.5c37.001%2C36.855%2C93.782%2C56.846%2C134.583%2C63.265c5.14%2C0.809%2C10.092%2C1.21%2C14.838%2C1.21c17.694%2C0%2C32.517-5.581%2C43.4-16.462c7.97-7.971%2C13.5-17.984%2C15.993-28.957C392.578%2C344.951%2C392.602%2C343.78%2C392.391%2C342.641z%22/%3E%3Cpath%20fill%3D%22%23189433%22%20d%3D%22M349.996%2C376.428c-4.747%2C0-9.698-0.401-14.838-1.21c-40.801-6.419-97.583-26.41-134.583-63.265l-0.502-0.5c-36.88-37.027-56.87-93.809-63.289-134.61c-3.323-21.118%2C0.236-39.088%2C10.283-52.492c-4.388%2C2.565-8.458%2C5.689-12.097%2C9.328c-13.801%2C13.801-19.075%2C33.938-15.252%2C58.237c6.418%2C40.801%2C26.409%2C97.583%2C63.289%2C134.61l0.502%2C0.5c37.001%2C36.855%2C93.782%2C56.846%2C134.583%2C63.265c5.14%2C0.809%2C10.092%2C1.21%2C14.838%2C1.21c17.694%2C0%2C32.517-5.581%2C43.4-16.462c1.974-1.974%2C3.797-4.075%2C5.463-6.284C372.747%2C373.836%2C362.037%2C376.428%2C349.996%2C376.428z%22/%3E%3C/svg%3E");
}

.cpc-back-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cpc-back-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cpc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 720px) {
  .cpc-grid {
    grid-template-columns: 1fr;
  }
}

.cpc-grid .form-row {
  width: 100%;
  margin: 0;
}

.cpc-grid .form-row-wide {
  grid-column: span 2;
}

.cpc-grid .form-row textarea,
.cpc-grid .form-row input,
.cpc-grid .form-row select {
  width: 100%;
}

.cpc-back-link:hover {
  text-decoration: underline;
}

.cpc-left,
.cpc-right {
  min-width: 0;
}

.cpc-right {
  align-self: flex-start;
  position: sticky;
  top: 16px;
  height: fit-content;
}

.cpc-step {
  background: var(--cpc-card);
  border: 1px solid var(--cpc-border);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 12px;
}

.cpc-step-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  cursor: pointer;
}

.cpc-step-header .cpc-step-number {
  width: 28px !important;
  height: 28px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px !important;
  letter-spacing: 0.2px;
  border: 0 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35) !important;
  align-self: flex-start;
  margin-top: 2px;
}
.cpc-step.is-complete .cpc-step-number {
  background: #22c55e !important;
  color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.28) !important;
}

.cpc-step.is-active .cpc-step-number {
  background: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.45) !important;
}

.cpc-step-text h2 {
  margin: 0;
  font-size: 17px;
  color: var(--cpc-text);
}

.cpc-step-text p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--cpc-muted);
}

.cpc-edit-step {
  margin-left: auto;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #3b82f6 100%);
  border: none;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  color: #ffffff !important;
  cursor: pointer;
  display: none;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.cpc-edit-step:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(37, 99, 235, 0.3);
}

.cpc-step.is-complete .cpc-edit-step {
  display: inline-flex;
}

.cpc-step-summary {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px dashed var(--cpc-border);
  border-radius: 10px;
  background: #f9fafb;
  margin-bottom: 10px;
  font-size: 12px;
}

.cpc-step-summary > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.cpc-summary-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cpc-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  flex: 0 0 auto;
}

.cpc-icon-name {
  color: #2563eb;
}

.cpc-icon-address {
  color: #0ea5e9;
}

.cpc-icon-phone {
  color: #8b5cf6;
}

.cpc-icon-email {
  color: #f97316;
}

.cpc-icon-delivery {
  color: #f59e0b;
}

.cpc-icon-payment {
  color: #16a34a;
}

.cpc-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cpc-summary .shop_table,
.woocommerce-checkout-review-order-table {
  display: none !important;
}

.cpc-icon-whatsapp {
  color: #16a34a;
}

.cpc-step-summary strong {
  color: var(--cpc-text);
}

/* Phone/WhatsApp field alignment overrides */
.cpc-phone-field,
.cpc-whatsapp-field {
  gap: 0;
}

.cpc-phone-field::after,
.cpc-phone-field:focus-within::after {
  content: none !important;
}

.cpc-phone-prefix,
.cpc-whatsapp-prefix {
  border-right: none;
  padding-right: 0;
  position: relative;
  box-shadow: none !important;
}

.cpc-phone-prefix::after,
.cpc-whatsapp-prefix::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: #cbd5e1;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cpc-phone-prefix::before,
.cpc-whatsapp-prefix::before {
  content: none !important;
}

.cpc-phone-field:focus-within .cpc-phone-prefix::after,
.cpc-whatsapp-field:focus-within .cpc-whatsapp-prefix::after {
  opacity: 1;
}

.cpc-phone-input,
.cpc-whatsapp-input {
  padding-left: 0 !important;
  margin-left: 0 !important;
  text-indent: 0 !important;
  padding-left: 18px !important;
}

.cpc-phone-input::placeholder,
.cpc-whatsapp-input::placeholder {
  transform: translateX(4px);
}

.cpc-step.is-complete .cpc-step-summary {
  display: flex;
}

.cpc-step.is-hidden .cpc-step-body,
.cpc-step.is-hidden .cpc-step-actions {
  display: none;
}

.cpc-step-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.cpc-step1-actions .cpc-step1-actions-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cpc-create-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  cursor: pointer;
}

.cpc-create-inline input {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.cpc-checkout .woocommerce-account-fields {
  display: none !important;
}

.cpc-next {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #3b82f6 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 12px;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.cpc-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 24px rgba(37, 99, 235, 0.3);
}

.cpc-next.is-disabled,
.cpc-next:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cpc-summary {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  position: sticky;
  top: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  max-width: 100%;
  box-sizing: border-box;
}

.cpc-summary-divider {
  height: 1px;
  width: 100%;
  background: #e5e7eb;
  margin: 14px 0;
}

.cpc-summary #order_review_heading {
  display: none;
}

.cpc-summary .shop_table {
  display: none !important;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0;
}

.cpc-summary .shop_table thead {
  display: none;
}

.cpc-summary .shop_table tbody {
  display: none;
}

.cpc-summary .shop_table tfoot {
  display: none;
}

.cpc-amazon-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #111827;
  margin: 12px 0 6px;
}

.cpc-amazon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cpc-amazon-row strong {
  font-weight: 600;
}

.cpc-amazon-free {
  color: #16a34a;
  font-weight: 600;
}

.cpc-amazon-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #000;
}

.cpc-summary .shop_table tr {
  border-bottom: 1px solid #edf1f7;
}

.cpc-summary .shop_table tr:last-child {
  border-bottom: none;
}

.cpc-summary .shop_table th,
.cpc-summary .shop_table td {
  padding: 6px 0;
  font-size: 12px;
  color: var(--cpc-muted);
  font-weight: 500;
  text-align: left;
  background: transparent;
  border: none;
}

.cpc-summary .shop_table th:first-child,
.cpc-summary .shop_table td:first-child {
  text-align: left !important;
}

.cpc-summary .shop_table th:last-child,
.cpc-summary .shop_table td:last-child {
  text-align: right !important;
}

.cpc-summary .shop_table th {
  text-align: left !important;
}

.cpc-summary .shop_table td {
  text-align: right;
}

.cpc-summary .shop_table td.product-total,
.cpc-summary .shop_table tr.cart-subtotal td,
.cpc-summary .shop_table tr.shipping td,
.cpc-summary .shop_table tr.order-total td {
  text-align: right !important;
  color: var(--cpc-text);
  font-weight: 600;
}

.cpc-summary .shop_table tr.cart-subtotal th,
.cpc-summary .shop_table tr.shipping th,
.cpc-summary .shop_table tr.order-total th {
  text-align: left !important;
  color: var(--cpc-text);
  font-weight: 600;
}

.cpc-summary .shop_table tfoot tr:last-child td,
.cpc-summary .shop_table tfoot tr:last-child th {
  font-size: 14px;
  font-weight: 700;
}

.cpc-summary-notes {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cpc-summary-notes p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--cpc-muted);
}

.cpc-note-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #c7d2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cpc-accent);
  font-size: 12px;
  font-weight: 600;
}

.cpc-note-dot::after {
  content: 'i';
}

.cpc-summary .woocommerce-form-coupon-toggle {
  display: none;
}

.cpc-coupon-toggle {
  padding: 10px 12px;
  background: #f4f7fb;
  border-radius: 10px;
  border: 1px solid #e3e8f0;
  font-weight: 600;
  font-size: 12px;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.cpc-coupon-toggle::after {
  content: none;
}

.cpc-summary .cpc-coupon-box {
  margin-top: 12px;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.cpc-summary .cpc-summary-coupon {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.cpc-summary .cpc-coupon-arrow {
  display: none;
}

.cpc-summary .checkout_coupon,
.cpc-summary .cpc-coupon-form {
  margin-top: 8px;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  display: none !important;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  box-shadow: none !important;
}

.cpc-summary .checkout_coupon.is-visible,
.cpc-summary .cpc-coupon-form.is-visible {
  display: block !important;
  max-height: 200px;
  opacity: 1;
}

.cpc-summary .checkout_coupon .cpc-coupon-table {
  width: 100%;
  border-collapse: collapse;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cpc-summary .checkout_coupon .cpc-coupon-table,
.cpc-summary .checkout_coupon .cpc-coupon-table tbody,
.cpc-summary .checkout_coupon .cpc-coupon-table tr,
.cpc-summary .checkout_coupon .cpc-coupon-table td {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.cpc-summary .checkout_coupon .cpc-coupon-input {
  width: 100%;
  padding-right: 8px;
}

.cpc-summary .checkout_coupon .cpc-coupon-input input[type="text"],
.cpc-summary .checkout_coupon .cpc-coupon-input #coupon_code {
  margin-top: 8px;
  width: 100% !important;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  background: #f8fafc;
}

.cpc-summary .checkout_coupon .cpc-coupon-action {
  width: 96px !important;
  white-space: nowrap;
  border-radius: 8px;
  background: #e2e8f0;
  color: #111827;
  border: 1px solid #e2e8f0;
}

.cpc-summary .checkout_coupon .cpc-coupon-action .button,
.cpc-summary-submit {
  padding: 8px 0;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
  background: #cbd5e1;
}

.cpc-summary .checkout_coupon .cpc-coupon-action .button:hover {
  filter: brightness(0.98);
}

.cpc-summary .checkout_coupon .cpc-coupon-action,
.cpc-summary-submit {
  width: 108px !important;
  white-space: nowrap;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #3b82f6 100%);
  color: #ffffff;
  border: none;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: none;
  transition: opacity 0.2s ease;
}

@media (max-width: 520px) {
  .cpc-summary .checkout_coupon .cpc-coupon-input {
    padding-right: 0;
    margin-bottom: 8px;
  }

  .cpc-summary .checkout_coupon .cpc-coupon-action,
  .cpc-summary-submit {
    width: 100% !important;
  }
}

.cpc-summary-submit:hover {
  opacity: 0.9;
}

.cpc-summary-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cpc-shipping {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cpc-ship-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--cpc-border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cpc-ship-option:hover {
  border-color: var(--cpc-primary);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.cpc-ship-radio input {
  width: 18px;
  height: 18px;
}

.cpc-ship-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cpc-ship-title {
  font-weight: 600;
  color: var(--cpc-text);
}

.cpc-ship-desc {
  font-size: 13px;
  color: var(--cpc-muted);
}

.cpc-ship-price {
  font-weight: 600;
  color: #b45309;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cpc-ship-price .cpc-ship-old {
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.cpc-ship-price .cpc-ship-new {
  color: #b45309;
  font-weight: 700;
}
.cpc-relay {
  margin-top: 10px;
  display: none;
  visibility: visible;
  opacity: 1;
}

.cpc-relay-select-php-fallback {
  margin-top: 10px;
  display: none;
  visibility: visible;
  opacity: 1;
}

.cpc-relay label {
  font-weight: 600;
  color: var(--cpc-text);
}

.cpc-cart-simulator {
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cpc-cart-simulator h3 {
  margin: 0 0 8px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cpc-cart-step-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185 0%, #ef4444 100%);
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.28);
}

.cpc-cart-simulator-help {
  margin: 0 0 12px;
  color: var(--cpc-muted);
  font-size: 13px;
}

.cpc-cart-sim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.cpc-cart-sim-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.cpc-cart-simulator .cpc-input {
  width: 100%;
}

.cpc-cart-relay-wrap {
  margin-top: 2px;
}


.cart_totals tr.cpc-shipping-title-row {
  border-top: 1px solid #d8dde6;
}

.cart_totals tr.cpc-shipping-title-row th {
  padding: 10px 0 8px;
  border: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.cart_totals tr.shipping.cpc-inline-shipping-custom th {
  color: #6b7b94;
  font-weight: 500;
  vertical-align: top;
  width: 42%;
  padding-top: 14px;
}

.cpc-inline-ship-label,
.cpc-inline-ship-city {
  display: block;
  color: #6b7b94;
  font-size: 15px;
  line-height: 1.2;
}

.cpc-inline-ship-city {
  font-weight: 600;
}

.cart_totals tr.shipping.cpc-inline-shipping-custom td {
  vertical-align: top;
  text-align: right;
  padding-top: 10px;
}

.cart_totals tr.shipping.cpc-inline-shipping-custom td ul#shipping_method {
  margin: 0;
  padding: 0;
}

.cart_totals tr.shipping.cpc-inline-shipping-custom td ul#shipping_method,
.cart_totals tr.shipping.cpc-inline-shipping-custom td .woocommerce-shipping-destination,
.cart_totals tr.shipping.cpc-inline-shipping-custom td .cpc-inline-ship-extra {
  display: none !important;
}

.cart_totals tr.shipping.cpc-inline-shipping-custom td ul#shipping_method li {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}

.cart_totals tr.shipping.cpc-inline-shipping-custom td ul#shipping_method li input {
  order: 2;
  margin: 0;
}

.cart_totals tr.shipping.cpc-inline-shipping-custom td ul#shipping_method li label,
.cpc-inline-ship-method {
  order: 1;
  color: #111827;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.2;
}

.cart_totals tr.shipping.cpc-inline-shipping-custom td .woocommerce-shipping-destination {
  margin: 0 0 2px;
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
}

.cart_totals tr.shipping.cpc-inline-shipping-custom td .woocommerce-shipping-destination strong {
  font-weight: 600;
}

.cpc-inline-ship-extra {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-top: 6px;
}

.cpc-inline-ship-details {
  color: #111827;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
}

.cpc-inline-ship-details strong {
  font-weight: 600;
}

.cpc-cart-sim-modify-inline {
  color: #1e73be;
  font-weight: 400;
  font-size: 15px;
  text-decoration: none;
  margin-top: 6px;
}

.cpc-cart-sim-modify-inline:hover,
.cpc-cart-sim-modify-inline:focus {
  color: #135e96;
  text-decoration: underline;
}

.cpc-inline-ship-box {
  border: 1px solid #d8dde6;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cpc-inline-ship-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.cpc-inline-ship-item-label {
  color: #2f3742;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}

.cpc-inline-ship-item-value {
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .cpc-inline-ship-label,
  .cpc-inline-ship-city,
  .cpc-inline-ship-method,
  .cpc-inline-ship-details,
  .cpc-cart-sim-modify-inline {
    font-size: 15px;
  }

  .cart_totals tr.shipping.cpc-inline-shipping-custom td .woocommerce-shipping-destination {
    font-size: 15px;
  }
}

/* Hide WooCommerce native shipping calculator when custom simulator is active */
.cart_totals .woocommerce-shipping-calculator,
.cart_totals .shipping-calculator-button,
.cart_totals .shipping-calculator-form {
  display: none !important;
}

@media (max-width: 760px) {
  .cpc-cart-sim-grid {
    grid-template-columns: 1fr;
  }
}

.cpc-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 720px) {
  .cpc-extra {
    grid-template-columns: 1fr;
  }
}

.cpc-empty {
  color: var(--cpc-muted);
}

/* WhatsApp custom field (matches phone layout) */
.cpc-phone-field,
.cpc-whatsapp-field {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 8px;
  min-height: 46px;
  background: #ffffff;
  box-sizing: border-box;
  overflow: hidden;
}

.cpc-phone-prefix,
.cpc-whatsapp-prefix {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-right: 6px;
  position: relative;
  cursor: pointer;
}

.cpc-phone-prefix::after,
.cpc-whatsapp-prefix::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: #cbd5e1;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cpc-phone-field:focus-within .cpc-phone-prefix::after,
.cpc-whatsapp-field:focus-within .cpc-whatsapp-prefix::after {
  opacity: 1;
}

.cpc-phone-input,
.cpc-whatsapp-input {
  border: none !important;
  box-shadow: none !important;
  outline: none;
  background: transparent;
  padding: 0 4px 0 8px;
  height: 44px;
  font-size: 14px;
  width: 100%;
  border-radius: 0 !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  caret-color: auto;
}

.cpc-phone-flag,
.cpc-whatsapp-flag {
  font-size: 40px;
  line-height: 1;
}

.cpc-phone-code,
.cpc-whatsapp-code {
  font-weight: 500;
  color: #6b7280;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  margin-left: 2px;
}

.cpc-whatsapp-code::after {
  content: '';
  display: inline-block;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #9ca3af;
  transform: translateY(0);
}

.cpc-whatsapp-logo {
  width: 19px;
  height: 19px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%2320A83E' d='M437.019 74.98C388.668 26.628 324.38 0 256 0S123.333 26.628 74.98 74.98 0 187.62 0 256c0 51.485 15.154 100.938 43.874 143.34L0.69 500.106c-1.343 3.134-.607 6.966 1.798 9.381 2.495 2.506 6.519 3.206 9.714 1.684l96.358-45.885C151.858 495.866 202.721 512 256 512c68.38 0 132.668-26.628 181.019-74.98C485.371 388.667 512 324.38 512 256S485.371 123.333 437.019 74.98z'/%3E%3Ccircle fill='%23E5E5E5' cx='256' cy='256' r='213.333'/%3E%3Ccircle fill='%23FFFFFF' cx='256' cy='256' r='187.733'/%3E%3Cpath fill='%2320A83E' d='M392.391 342.641l-7.673-41.561c-.635-3.432-3.295-6.133-6.718-6.818l-60.339-12.067c-2.802-.559-5.691.317-7.709 2.334l-24.514 24.514c-41.302-18.507-64.226-41.478-84.396-84.555l24.435-24.436c2.018-2.017 2.893-4.91 2.334-7.708l-12.068-60.34c-.685-3.423-3.386-6.084-6.819-6.718l-41.561-7.673c-1.138-.21-2.31-.187-3.44.07-10.974 2.494-20.987 8.023-28.956 15.994-13.801 13.801-19.075 33.938-15.252 58.237 6.418 40.801 26.409 97.583 63.289 134.61l.502.5c37.001 36.855 93.782 56.846 134.583 63.265 5.14.809 10.092 1.21 14.838 1.21 17.694 0 32.517-5.581 43.4-16.462 7.97-7.971 13.5-17.984 15.993-28.957.187-.789.211-1.96 0-3.099z'/%3E%3Cpath fill='%23189433' d='M349.996 376.428c-4.747 0-9.698-.401-14.838-1.21-40.801-6.419-97.583-26.41-134.583-63.265l-.502-.5c-36.88-37.027-56.87-93.809-63.289-134.61-3.323-21.118.236-39.088 10.283-52.492-4.388 2.565-8.458 5.689-12.097 9.328-13.801 13.801-19.075 33.938-15.252 58.237 6.418 40.801 26.409 97.583 63.289 134.61l.502.5c37.001 36.855 93.782 56.846 134.583 63.265 5.14.809 10.092 1.21 14.838 1.21 17.694 0 32.517-5.581 43.4-16.462 1.974-1.974 3.797-4.075 5.463-6.284-8.219 5.091-18.929 7.683-30.97 7.683z'/%3E%3C/svg%3E");
}

.cpc-whatsapp-country {
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 22px;
  padding: 0 2px;
  box-shadow: none !important;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.cpc-whatsapp-country:focus {
  outline: none;
  box-shadow: none !important;
  border: none !important;
}

.cpc-phone-field input.cpc-phone-input.input-text,
.cpc-whatsapp-field input.cpc-whatsapp-input.input-text,
.cpc-phone-field input.cpc-phone-input.input-text:focus,
.cpc-whatsapp-field input.cpc-whatsapp-input.input-text:focus {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  outline: none !important;
  border-radius: 0 !important;
}

.cpc-grid .form-row .cpc-phone-field input[type="text"],
.cpc-grid .form-row .cpc-whatsapp-field input[type="text"],
.cpc-grid .form-row .cpc-phone-field input[type="text"]:focus,
.cpc-grid .form-row .cpc-whatsapp-field input[type="text"]:focus {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  outline: none !important;
  border-radius: 0 !important;
  height: 44px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.cpc-whatsapp-row .select2-container {
  width: auto !important;
}

.cpc-whatsapp-row .select2-selection--single {
  border: none !important;
  background: transparent !important;
  height: auto !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.cpc-whatsapp-row .select2-selection__rendered {
  padding: 0 !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.cpc-whatsapp-row img.emoji {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  outline: none !important;
  border-radius: 0 !important;
  width: 22px !important;
  height: 22px !important;
  max-width: none !important;
  max-height: none !important;
  display: inline-block !important;
  vertical-align: middle !important;
  align-self: center;
  transform: translateY(-2px);
}

.cpc-whatsapp-row img.emoji:focus,
.cpc-whatsapp-row img.emoji:focus-visible,
.cpc-whatsapp-row .select2-container--focus .select2-selection--single,
.cpc-whatsapp-row .select2-container--open .select2-selection--single {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.cpc-whatsapp-row .select2-selection__arrow {
  display: none !important;
}

.cpc-whatsapp-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cpc-whatsapp-option .cpc-whatsapp-flag {
  font-size: 18px;
  line-height: 1;
}

.cpc-whatsapp-option .cpc-whatsapp-dial {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.cpc-whatsapp-option .cpc-whatsapp-name {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}
