/**
 * Checkout demo-b — layout Figma MueblesMax.
 */

body.dpy-checkout-pure {
  margin: 0 !important;
  padding: 0 !important;
  background: #f3f3f3;
  --wp--style--root--padding-top: 0 !important;
  --wp--style--root--padding-right: 0 !important;
  --wp--style--root--padding-bottom: 0 !important;
  --wp--style--root--padding-left: 0 !important;
}
body.dpy-checkout-pure.admin-bar { padding-top: 32px !important; margin-top: 0 !important; }
body.dpy-checkout-pure.admin-bar #main-header { top: 32px; }
body.dpy-checkout-pure p,
body.dpy-checkout-pure h1,
body.dpy-checkout-pure h2,
body.dpy-checkout-pure h3 {
  margin: 0;
  padding: 0;
}

#checkout-section {
  padding: 20px 0 56px;
}

.checkout-continue-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.checkout-continue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--dpy-magenta, #e91e8c);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-decoration: none;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--dpy-magenta, #e91e8c) 28%, transparent); transition: background 0.2s;
}
.checkout-continue-btn:hover {
  background: var(--dpy-magenta-dark, #c2185b);
  color: #fff;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
}

.checkout-main,
.checkout-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.checkout-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 26px;
  border: 1px solid #ececec;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  width: 100%;
  box-sizing: border-box;
}

body.dpy-checkout-pure #customer_details,
body.dpy-checkout-pure .woocommerce-billing-fields {
  width: 100%;
}

.checkout-card__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #1a1a1a;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--dpy-magenta, #e91e8c);
  display: inline-block;
  min-width: 0;
}

body.dpy-checkout-pure h2.checkout-card__title {
  margin: 0 0 24px;
}

.checkout-card__title--sm {
  font-size: 14px;
  padding-bottom: 8px;
}

body.dpy-checkout-pure h2.checkout-card__title--sm {
  margin: 0 0 18px;
}

.checkout-fields-grid,
body.dpy-checkout-pure .woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  width: 100%;
}

body.dpy-checkout-pure .form-row-wide {
  grid-column: 1 / -1;
}

body.dpy-checkout-pure .form-row,
body.dpy-checkout-pure .form-row.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  float: none !important;
  clear: none !important;
}

body.dpy-checkout-pure .form-row-first,
body.dpy-checkout-pure .form-row-last {
  width: 100% !important;
  float: none !important;
  clear: none !important;
}

body.dpy-checkout-pure .form-row label,
body.dpy-checkout-pure .form-row .field-label {
  position: static !important;
  clip: auto !important;
  height: auto !important;
  width: auto !important;
  overflow: visible !important;
  font-size: 11px;
  font-weight: 800;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.3;
}

body.dpy-checkout-pure .form-row label .optional {
  display: none;
}

body.dpy-checkout-pure .form-row label abbr.required {
  color: #e53935;
  text-decoration: none;
  border: 0;
}

body.dpy-checkout-pure .form-row .woocommerce-input-wrapper {
  width: 100%;
  display: block;
}

body.dpy-checkout-pure .form-row input.input-text,
body.dpy-checkout-pure .form-row select,
body.dpy-checkout-pure .form-row textarea,
body.dpy-checkout-pure .form-row .field-input,
body.dpy-checkout-pure .form-row .select2-selection {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 44px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  background: #fff;
}

body.dpy-checkout-pure .form-row .select2-container {
  width: 100% !important;
  max-width: 100%;
  display: block;
}

body.dpy-checkout-pure .form-row .select2-container .select2-selection--single {
  height: 44px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
}

body.dpy-checkout-pure .form-row .select2-container .select2-selection__rendered {
  line-height: 42px;
  padding-left: 12px;
  padding-right: 28px;
}

body.dpy-checkout-pure .form-row .select2-container .select2-selection__arrow {
  height: 42px;
  right: 8px;
}

body.dpy-checkout-pure .form-row input.input-text:focus,
body.dpy-checkout-pure .form-row select:focus {
  border-color: var(--dpy-magenta, #e91e8c);
  outline: none;
}
body.dpy-checkout-pure .form-row input.input-text:focus-visible,
body.dpy-checkout-pure .form-row select:focus-visible {
  outline: 2px solid var(--dpy-magenta, #e91e8c);
  outline-offset: 1px;
}

body.dpy-checkout-pure .form-row input::placeholder {
  color: #bbb;
}

body.dpy-checkout-pure .dpy-hidden-field {
  display: none !important;
}

/* Resumen del pedido */
.checkout-card--summary {
  padding-bottom: 20px;
}

.co-summary__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #1a1a1a;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--dpy-magenta, #e91e8c);
  display: inline-block;
}

body.dpy-checkout-pure h2.co-summary__title {
  margin: 0 0 24px;
}

.co-summary__table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.co-summary__head,
.co-summary__row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  align-items: start;
}

.co-summary__head {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #666;
}

.co-summary__head span:last-child,
.co-summary__amount {
  text-align: right;
}

.co-summary__row {
  padding: 12px 0;
  border-bottom: 1px solid #f3f3f3;
  font-size: 13px;
  color: #333;
  line-height: 1.45;
}

.co-summary__row--meta {
  padding-top: 10px;
  padding-bottom: 8px;
  color: #555;
}

.co-summary__row--meta .co-summary__amount {
  font-weight: 600;
  color: #1a1a1a;
}

.co-summary__row--total {
  border-bottom: 0;
  padding-top: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #1a1a1a;
}

.co-summary__row--total .co-summary__amount {
  font-size: 18px;
  color: #1a1a1a;
}

.co-summary__row--note {
  grid-template-columns: 1fr;
  border-bottom: 0;
  padding-top: 4px;
}

.co-summary__note {
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

.co-summary__note p {
  margin: 0;
}

.co-summary__shipping {
  margin-top: 8px;
}

.co-summary__shipping .woocommerce-shipping-methods,
.co-summary__shipping ul#shipping_method {
  list-style: none;
  margin: 0;
  padding: 0;
}

.co-summary__shipping li {
  font-size: 12px;
  color: #555;
  margin-top: 6px;
}

/* Aviso provincia */
.checkout-card--notice {
  padding: 18px 22px;
}

.co-notice__title {
  font-size: 12px;
  font-weight: 800;
  color: #d32f2f;
  margin-bottom: 8px;
  line-height: 1.4;
}

.co-notice__body {
  font-size: 11px;
  line-height: 1.55;
  color: #d32f2f;
}

.co-notice__body strong {
  font-weight: 800;
}

/* Facturación */
.co-invoice__toggle {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dpy-magenta, #e91e8c);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
}

.co-invoice__toggle:hover {
  text-decoration: underline;
}

.co-invoice__fields {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.co-invoice__fields .checkout-fields-grid,
.co-invoice__fields .woocommerce-billing-fields__field-wrapper {
  grid-template-columns: 1fr;
}

body.dpy-checkout-pure .dpy-invoice-toggle-field {
  display: none !important;
}

/* Pagos — tarjetas expandibles Figma */
body.dpy-checkout-pure .checkout-card--payment .place-order,
body.dpy-checkout-pure .checkout-card--payment .woocommerce-privacy-policy-text,
body.dpy-checkout-pure .checkout-card--payment .woocommerce-terms-and-conditions-wrapper {
  display: none !important;
}

body.dpy-checkout-pure .checkout-card--payment #payment.woocommerce-checkout-payment {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  width: 100%;
}

body.dpy-checkout-pure .co-pay-list,
body.dpy-checkout-pure #payment.co-pay .co-pay-list,
body.dpy-checkout-pure .dpy-payment-methods,
body.dpy-checkout-pure .wc_payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 0;
  width: 100%;
}

body.dpy-checkout-pure .co-pay-item {
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.dpy-checkout-pure .co-pay-item.is-active {
  border-color: var(--dpy-magenta, #e91e8c);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--dpy-magenta, #e91e8c) 16%, transparent); }

body.dpy-checkout-pure .co-pay-head {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 28px;
  align-items: center;
  column-gap: 14px;
  row-gap: 0;
  padding: 14px 16px;
  cursor: pointer;
  background: #fff;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

body.dpy-checkout-pure .co-pay-item.is-active .co-pay-head {
  background: #fff8fc;
  border-radius: 10px 10px 0 0;
}

body.dpy-checkout-pure .co-pay-item:not(.is-active) .co-pay-head {
  border-radius: 10px;
}

body.dpy-checkout-pure .co-pay-head:hover {
  background: #fcfcfc;
}

body.dpy-checkout-pure .co-pay-item.is-active .co-pay-head:hover {
  background: #fff8fc;
}

body.dpy-checkout-pure .co-pay-radio {
  grid-column: 1;
  grid-row: 1;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex-shrink: 0;
  accent-color: var(--dpy-magenta, #e91e8c);
  cursor: pointer;
  display: inline-block !important;
  opacity: 1 !important;
  position: static !important;
}

body.dpy-checkout-pure .co-pay-label {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}

body.dpy-checkout-pure .co-pay-icon {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  font-size: 22px;
  line-height: 1;
  color: var(--dpy-magenta, #e91e8c);
}

body.dpy-checkout-pure .checkout-card--payment .co-pay-item .co-pay-body,
body.dpy-checkout-pure .checkout-card--payment .co-pay-item .co-pay-body.payment_box {
  display: block;
  margin: 0;
  padding: 14px 16px 18px;
  background: #fafafa;
  border-top: 1px solid #eee;
  border-radius: 0 0 10px 10px;
  box-sizing: border-box;
}

body.dpy-checkout-pure .co-pay-desc {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #555;
}

body.dpy-checkout-pure .co-pay-desc p,
body.dpy-checkout-pure .co-pay-desc ul,
body.dpy-checkout-pure .co-pay-desc ol {
  margin: 0;
}

body.dpy-checkout-pure .co-pay-desc p + p,
body.dpy-checkout-pure .co-pay-desc p + ul,
body.dpy-checkout-pure .co-pay-desc p + ol,
body.dpy-checkout-pure .co-pay-desc ul,
body.dpy-checkout-pure .co-pay-desc ol {
  margin-top: 0.4em;
}

body.dpy-checkout-pure .co-pay-desc ul,
body.dpy-checkout-pure .co-pay-desc ol {
  padding-left: 1.15em;
}

body.dpy-checkout-pure .co-pay-desc a {
  color: inherit;
  text-decoration: underline;
}

body.dpy-checkout-pure .co-pay-fields {
  margin-top: 12px;
}

body.dpy-checkout-pure .co-pay-fields .form-row {
  margin-bottom: 10px;
}

body.dpy-checkout-pure .co-pay-fields .form-row:last-child {
  margin-bottom: 0;
}

body.dpy-checkout-pure .checkout-card--payment .co-pay-fields .payment_box {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

body.dpy-checkout-pure .co-pay-empty {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid #eee;
  border-radius: 10px;
  background: #fafafa;
  font-size: 13px;
  color: #555;
}

body.dpy-checkout-pure .co-pay-empty .material-icons {
  color: var(--dpy-magenta, #e91e8c);
  font-size: 20px;
}

body.dpy-checkout-pure .co-pay-empty--alert {
  border-color: #ffcdd2;
  background: #fff5f5;
}

body.dpy-checkout-pure .co-pay-empty__title {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

/* Botón comprar */
body.dpy-checkout-pure .dpy-place-order-wrap .button,
body.dpy-checkout-pure #place_order {
  display: block;
  width: 100%;
  background: var(--dpy-magenta, #e91e8c);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 15px;
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  margin-top: 0;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--dpy-magenta, #e91e8c) 35%, transparent); }

body.dpy-checkout-pure .dpy-place-order-wrap .button:hover,
body.dpy-checkout-pure #place_order:hover {
  background: var(--dpy-magenta-dark, #c2185b);
  color: #fff;
}

body.dpy-checkout-pure .dpy-place-order-wrap {
  margin-top: 4px;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: #888;
}

.secure-note .material-icons {
  font-size: 14px;
}

body.dpy-checkout-pure .woocommerce-checkout-review-order-table,
body.dpy-checkout-pure #order_review .shop_table {
  display: none !important;
}

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-fields-grid,
  body.dpy-checkout-pure .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  .co-summary__head,
  .co-summary__row {
    grid-template-columns: 1fr 96px;
  }
}
