/**
 * SCP Cart & Checkout
 */
.scp-cart-checkout-wrap {
    background: #f4f4f6;
    padding: 24px 0 48px;
}

.scp-cart-checkout__inner {
    max-width: var(--scp-container-max, 1280px);
    margin: 0 auto;
    padding: 0 var(--scp-container-pad, 20px);
}

/* Header checkout */
.site-header--checkout .header-top--checkout {
    background: #111;
    padding: 14px 0;
}

.header-top__inner--checkout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-actions--checkout {
    display: flex;
    align-items: center;
    gap: 16px;
}

.scp-checkout-help-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--scp-accent, #9333ea);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.site-header--checkout .header-action {
    color: #fff;
}

.scp-checkout-header-active .header-nav-wrap {
    display: none;
}

.scp-checkout-header-active .header-search-wrap,
.scp-checkout-header-active .header-search-toggle,
.scp-checkout-header-active .menu-toggle--top {
    display: none !important;
}

/* Buttons */
.scp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.scp-btn--primary {
    background: var(--scp-accent, #9333ea);
    color: #fff;
    border-color: var(--scp-accent, #9333ea);
}

.scp-btn--primary:hover {
    background: var(--scp-accent-hover, #7e22ce);
    color: #fff;
}

.scp-btn--outline {
    background: #fff;
    color: var(--scp-accent, #9333ea);
    border-color: var(--scp-accent, #9333ea);
}

.scp-btn--block {
    width: 100%;
}

/* Cart page */
.scp-cart-page .scp-page-head {
    margin-bottom: 20px;
    padding: 0 0 14px;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid #d8d8de;
    box-shadow: none;
}

.scp-page-head__back {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
}

.scp-page-head__back::before {
    content: "‹ ";
    color: var(--scp-accent, #9333ea);
}

.scp-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 20px;
    align-items: start;
}

.scp-cart-layout__products,
.scp-cart-layout__summary {
    min-width: 0;
}

.scp-cart-layout__summary {
    align-self: start;
}

.scp-cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scp-cart-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 14px 16px;
    align-items: start;
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.scp-cart-item__thumb img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 8px;
    background: #fafafa;
}

.scp-cart-item__body {
    min-width: 0;
}

.scp-cart-item__title {
    margin: 0 0 12px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
}

.scp-cart-item__title a {
    color: #222;
    text-decoration: none;
}

.scp-cart-item__price-col {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--scp-accent, #9333ea);
    white-space: nowrap;
    text-align: right;
    align-self: start;
    padding-top: 2px;
}

.scp-cart-item__price-col .woocommerce-Price-amount {
    color: inherit;
    font-weight: inherit;
}

.scp-cart-item__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}

.scp-cart-item__qty-wrap {
    display: inline-flex;
    align-items: center;
    background: #f3f0f8;
    border-radius: 999px;
    padding: 2px;
    gap: 0;
}

.scp-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--scp-accent, #9333ea);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 50%;
    line-height: 1;
    padding: 0;
}

.scp-qty-btn:hover {
    background: rgba(147, 51, 234, 0.12);
}

.scp-cart-item__qty .quantity {
    display: inline-flex;
    align-items: center;
}

.scp-cart-item__qty .qty {
    width: 36px;
    text-align: center;
    border: none;
    background: transparent;
    padding: 6px 2px;
    font-weight: 700;
    font-size: 0.9rem;
    -moz-appearance: textfield;
}

.scp-cart-item__qty .qty::-webkit-outer-spin-button,
.scp-cart-item__qty .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.scp-cart-item__remove-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: #f3e8ff;
    border-radius: 8px;
    color: var(--scp-accent, #9333ea) !important;
    text-decoration: none;
    flex-shrink: 0;
}

.scp-cart-item__remove-btn:hover {
    background: #e9d5ff;
}

.scp-cart-item__trash-icon {
    display: block;
}

.scp-cart-form-actions {
    margin-top: 16px;
    display: none;
}

body.scp-cart-page .woocommerce .cart-collaterals,
body.scp-cart-page .woocommerce .cart-collaterals .cart_totals,
body.scp-cart-page .woocommerce .scp-cart-totals {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: none !important;
    margin: 0 !important;
}

body.scp-cart-page .woocommerce .cart-collaterals {
    display: block;
}

.scp-cart-totals {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 24px;
    height: auto;
    box-sizing: border-box;
}

.scp-cart-totals__title {
    margin: 0 0 12px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
}

.scp-cart-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.92rem;
}

.scp-cart-totals__row--subtotal .scp-cart-totals__label {
    font-weight: 700;
    color: #222;
}

.scp-cart-totals__row--total {
    border-top: 1px solid #eee;
    margin-top: 4px;
    padding-top: 12px;
    font-size: 1rem;
    font-weight: 700;
}

.scp-cart-totals__value--total {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0;
    color: var(--scp-accent, #9333ea);
    white-space: nowrap;
}

.scp-cart-totals__value--total strong {
    display: inline;
    font-weight: inherit;
}

.scp-cart-totals__asterisk {
    color: inherit;
    font-weight: inherit;
}

.scp-cart-totals__note {
    margin: 6px 0 14px;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #777;
}

.scp-cart-totals__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scp-cart-page .wc-proceed-to-checkout {
    padding: 0 !important;
    margin: 0;
}

.scp-cart-page .wc-proceed-to-checkout::before,
.scp-cart-page .wc-proceed-to-checkout::after {
    display: none !important;
}

body.scp-cart-page .woocommerce .checkout-button.button.alt {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    border-radius: 10px !important;
    text-align: center;
    text-decoration: none;
    background: var(--scp-accent, #9333ea) !important;
    color: #fff !important;
    border: 2px solid var(--scp-accent, #9333ea) !important;
    box-sizing: border-box;
    transform: none !important;
}

.scp-cart-page .checkout-button.button.alt:hover {
    background: var(--scp-accent-hover, #7e22ce) !important;
    border-color: var(--scp-accent-hover, #7e22ce) !important;
    color: #fff !important;
}

.scp-cart-totals__checkout,
.scp-cart-totals__continue {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Overrides WooCommerce en el carrito SCP */
.scp-cart-page .woocommerce a.remove.scp-cart-item__remove-btn {
    color: var(--scp-accent, #9333ea) !important;
}

.scp-cart-page .woocommerce-cart-form .form-row,
.scp-cart-page .woocommerce-cart-form .quantity {
    margin: 0;
    padding: 0;
}

.scp-cart-page .woocommerce-cart-form input.qty {
    width: 36px !important;
    min-height: 0 !important;
    box-shadow: none;
}

/* Anular estilos globales de WooCommerce en el carrito */
body.scp-cart-page .woocommerce .woocommerce-cart-form,
body.scp-cart-page .woocommerce .woocommerce-cart-form * {
    box-sizing: border-box;
}

body.scp-cart-page .woocommerce table.shop_table {
    display: none !important;
}

body.scp-cart-page .woocommerce .shipping-calculator-form,
body.scp-cart-page .woocommerce .woocommerce-shipping-calculator,
body.scp-cart-page.scp-needs-postcode .woocommerce .scp-cart-totals__row--shipping {
    display: none !important;
}

.scp-cart-empty {
    background: #fff;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
}

/* Checkout layout */
.scp-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.scp-checkout-main {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.scp-checkout-step[hidden] {
    display: none !important;
}

.scp-checkout-step__title {
    margin: 0 0 20px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
}

.scp-checkout-step__subtitle {
    margin: 20px 0 12px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: #666;
}

/* Stepper */
.scp-checkout-stepper {
    margin-bottom: 28px;
}

.scp-checkout-stepper__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.scp-checkout-stepper__item {
    flex: 1;
    text-align: center;
    position: relative;
    color: #aaa;
    font-size: 0.78rem;
    font-weight: 600;
}

.scp-checkout-stepper__btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 4px 2px;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: center;
    border-radius: 8px;
    box-shadow: none;
    transform: none;
    transition: color 0.2s ease;
}

/* Anula button:hover global del tema (fondo violeta en todo el botón) */
.scp-checkout-form .scp-checkout-stepper__btn:hover,
.scp-checkout-form .scp-checkout-stepper__btn:focus {
    background: transparent;
    color: inherit;
    transform: none;
    box-shadow: none;
}

.scp-checkout-stepper__item:not(.scp-checkout-stepper__item--active) .scp-checkout-stepper__btn:hover {
    color: #555;
}

.scp-checkout-stepper__item:not(.scp-checkout-stepper__item--active) .scp-checkout-stepper__btn:hover .scp-checkout-stepper__icon {
    background: #d8d8d8;
    color: #666;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.scp-checkout-stepper__item--done:not(.scp-checkout-stepper__item--active) .scp-checkout-stepper__btn:hover .scp-checkout-stepper__icon {
    background: #9e9e9e;
    color: #fff;
}

.scp-checkout-stepper__item:not(.scp-checkout-stepper__item--active) .scp-checkout-stepper__btn:hover .scp-checkout-stepper__label {
    color: #444;
}

.scp-checkout-stepper__btn:focus-visible {
    outline: 2px solid var(--scp-accent, #9333ea);
    outline-offset: 3px;
}

.scp-checkout-stepper__item--active .scp-checkout-stepper__btn {
    cursor: default;
    pointer-events: none;
}

.scp-checkout-stepper__item::after {
    content: "";
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 0;
    border-top: 2px dotted #d8d8d8;
    z-index: 0;
}

.scp-checkout-stepper__item--done::after {
    border-top-style: solid;
    border-top-color: #888;
}

.scp-checkout-stepper__item:last-child::after {
    display: none;
}

.scp-checkout-stepper__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #999;
    position: relative;
    z-index: 1;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.scp-checkout-stepper__icon svg {
    display: block;
    flex-shrink: 0;
}

.scp-checkout-stepper__item--active {
    color: var(--scp-accent, #9333ea);
}

.scp-checkout-stepper__item--active .scp-checkout-stepper__icon {
    background: var(--scp-accent, #9333ea);
    color: #fff;
}

.scp-checkout-stepper__item--done {
    color: #444;
}

.scp-checkout-stepper__item--done .scp-checkout-stepper__icon {
    background: #bdbdbd;
    color: #fff;
}

/* Shipping / payment options */
.scp-shipping-methods {
    margin: 0;
}

.scp-shipping-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scp-shipping-group {
    margin-bottom: 0;
    padding: 22px 24px;
}

.scp-shipping-group__title {
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #666;
    text-transform: uppercase;
}

.scp-shipping-rates {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scp-shipping-rate {
    margin: 0;
}

.scp-shipping-rate__label {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 12px 16px;
    border: 1.5px solid #e4e4e7;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.scp-shipping-rate.is-selected .scp-shipping-rate__label,
.scp-shipping-rate__label:has(.scp-shipping-rate__input:checked) {
    border-color: var(--scp-accent, #9333ea);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(147, 51, 234, 0.08);
}

.scp-shipping-rate__input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 0;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    cursor: pointer;
}

.scp-shipping-rate__input:checked {
    border-color: var(--scp-accent, #9333ea) !important;
    box-shadow: inset 0 0 0 5px var(--scp-accent, #9333ea);
}

.scp-shipping-rate__brand {
    flex: 1 1 auto;
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.scp-shipping-rate__brand--pickit {
    color: #f05a28;
}

.scp-shipping-rate__brand--dropshipping-entregar,
.scp-shipping-rate__brand--dropshipping {
    color: #333;
}

.scp-shipping-rate__price {
    flex: 0 0 auto;
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}

.scp-shipping-extras .shop_table {
    width: 100%;
    border: none;
}

.scp-shipping-extras tr.andreani-sucursales-row {
    display: block;
    margin-top: 12px;
}

.scp-shipping-extras tr.andreani-sucursales-row th {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #666;
    text-transform: uppercase;
}

.scp-shipping-extras tr.andreani-sucursales-row td {
    display: block;
}

.scp-shipping-methods .woocommerce-shipping-totals-table {
    width: 100%;
    border: none;
    border-collapse: collapse;
    margin: 0;
}

.scp-shipping-methods .woocommerce-shipping-totals-table th,
.scp-shipping-methods .woocommerce-shipping-totals-table td {
    border: none;
    padding: 0;
    background: transparent;
}

.scp-shipping-methods tr.woocommerce-shipping-totals,
.scp-shipping-methods tr.andreani-sucursales-row,
.scp-shipping-methods tr.wc-postcode-notice-row,
.scp-shipping-methods tr.scp-shipping-methods__placeholder {
    display: block;
    margin-bottom: 10px;
}

.scp-shipping-methods tr.woocommerce-shipping-totals th {
    display: none;
}

.scp-shipping-methods tr.woocommerce-shipping-totals td,
.scp-shipping-methods tr.andreani-sucursales-row td,
.scp-shipping-methods tr.wc-postcode-notice-row td {
    display: block;
}

.scp-shipping-methods tr.andreani-sucursales-row th {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.scp-shipping-methods tr.andreani-sucursales-row select {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
}

.scp-shipping-methods__hint {
    margin: 0;
    padding: 14px 16px;
    background: #fffbea;
    border-left: 4px solid #f0c040;
    border-radius: 0 8px 8px 0;
    font-size: 0.88rem;
    color: #5c4a00;
}

/* Código postal — carrito y checkout */
.scp-cart-delivery {
    margin-bottom: 0;
}

.scp-postcode-section {
    margin-bottom: 20px;
}

.scp-postcode-section--prompt {
    padding: 28px 32px;
}

.scp-postcode-section--ready {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 18px;
    box-shadow: none;
}

.scp-postcode-section__label {
    margin: 0 0 18px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #666;
    text-transform: uppercase;
}

.scp-postcode-section__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
}

.scp-postcode-section__form .scp-field--wide {
    max-width: 100%;
}

.scp-postcode-section__form .scp-postcode-submit {
    align-self: flex-start;
    min-width: 140px;
}

.scp-postcode-section__error {
    display: block;
    font-size: 0.85rem;
    color: #c62828;
}

.scp-postcode-section__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.scp-postcode-section__destination {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #666;
    text-transform: uppercase;
}

.scp-postcode-section__value {
    display: inline-block;
    margin-left: 6px;
    font-size: 1rem;
    color: #222;
    letter-spacing: 0.02em;
    text-transform: none;
}

.scp-postcode-section__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-left: auto;
}

.scp-postcode-section__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--scp-accent, #9333ea);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.scp-cart-shipping-estimate {
    margin-top: 16px;
}

body.scp-needs-postcode .scp-postcode-gated,
body.scp-needs-postcode .scp-customer-details,
body.scp-needs-postcode .scp-order-notes {
    display: none !important;
}

body.scp-needs-postcode.scp-checkout-page .scp-checkout-step[data-step="shipping"] .scp-postcode-section--prompt {
    margin-top: 8px;
}

body.scp-has-postcode .scp-postcode-gated {
    display: block;
}

body.scp-has-postcode #scp-shipping-address-fields:not(.is-visible) {
    display: none !important;
}

body.scp-has-postcode .scp-customer-details:not(.is-address-open) {
    margin-top: 0;
}

.scp-shipping-options {
    margin-bottom: 20px;
}

.scp-checkout-nav .scp-btn {
    min-width: 140px;
    min-height: 46px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
}

.scp-checkout-nav .scp-btn--outline {
    background: #fff;
}

body.scp-needs-postcode .scp-checkout-nav .scp-btn--primary {
    min-width: 160px;
}

.scp-shipping-methods ul#shipping_method,
.scp-checkout-payment .wc_payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
}

.scp-shipping-methods ul#shipping_method li {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.scp-checkout-payment .wc_payment_method {
    background: #fff;
    border: 2px solid #e4e4e7;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scp-checkout-payment .wc_payment_method:has(.scp-payment-method__input:checked),
.scp-checkout-payment .wc_payment_method.is-selected {
    border-color: var(--scp-accent, #9333ea);
    box-shadow: 0 0 0 1px rgba(147, 51, 234, 0.12);
}

.scp-shipping-methods ul#shipping_method label {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.scp-shipping-methods input[type="radio"],
.scp-checkout-payment input[type="radio"] {
    accent-color: var(--scp-accent, #9333ea);
    width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    flex-shrink: 0;
}

/* Notas del pedido — al pie del paso Envío */
.scp-order-notes {
    margin-top: 20px;
}

.scp-order-notes .scp-field--textarea .scp-field__textarea {
    min-height: 120px;
    height: auto;
    padding: 20px 14px 12px;
    resize: vertical;
    line-height: 1.45;
}

.scp-customer-details .woocommerce-additional-fields {
    display: none;
}

/* Anular col2-set de WooCommerce: .col-2 flota a la derecha al 48% */
.scp-checkout-form .scp-customer-details,
.scp-checkout-form .scp-shipping-fields-wrap,
.scp-checkout-form .scp-billing-fields,
.scp-checkout-form .scp-shipping-options,
.scp-checkout-form .scp-order-notes {
    width: 100%;
    max-width: 100%;
    float: none;
    clear: both;
}

.scp-checkout-form .col2-set .col-1,
.scp-checkout-form .col2-set .col-2 {
    width: 100%;
    float: none;
}

.scp-payment-group {
    margin-bottom: 24px;
    padding: 18px;
    background: #f4f2f8;
    border-radius: 14px;
}

.scp-payment-group__title {
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6b5b7a;
    text-transform: uppercase;
}

.scp-payment-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin: 0;
    cursor: pointer;
    font-weight: 600;
}

.scp-payment-method__input {
    appearance: none;
    -webkit-appearance: none;
    width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin: 0;
    padding: 0 !important;
    flex-shrink: 0;
    cursor: pointer;
    background: #fff;
}

.scp-payment-method__input:checked {
    border-color: var(--scp-accent, #9333ea) !important;
    box-shadow: inset 0 0 0 5px var(--scp-accent, #9333ea);
}

.scp-payment-method__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.scp-payment-method__title {
    font-size: 0.95rem;
    color: #222;
    line-height: 1.35;
}

.scp-payment-method__icon img {
    max-height: 28px;
    width: auto;
}

.scp-checkout-payment .payment_box {
    margin: 0;
    padding: 14px 18px 18px 54px;
    background: #faf7ff;
    border-top: 1px solid #ece6f5;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #444;
}

.scp-checkout-payment .payment_box::before {
    content: none;
}

.scp-checkout-payment .wc_payment_methods {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.scp-checkout-coupon {
    margin-top: 8px;
}

body.scp-checkout-step-review .scp-checkout-nav__next,
.scp-checkout-nav__next.is-hidden {
    display: none !important;
}

.scp-checkout-nav__confirm[hidden],
.scp-checkout-nav__confirm.is-hidden {
    display: none !important;
}

body:not(.scp-checkout-step-review) .scp-checkout-nav__confirm {
    display: none !important;
}

.scp-checkout-nav__confirm {
    margin-left: auto;
}

body.scp-checkout-step-review .scp-checkout-nav {
    justify-content: space-between;
}

.scp-review-order__row--readonly ul#shipping_method {
    pointer-events: none;
    opacity: 0.85;
}

.scp-review-order__row--readonly input {
    display: none;
}

/* Summary sidebar — misma estética que el panel principal */
.scp-checkout-summary {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    position: sticky;
    top: 24px;
}

.scp-checkout-summary__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ececec;
}

.scp-checkout-summary__title {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
}

.scp-checkout-timer {
    text-align: right;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff8f8;
    border: 1px solid #ffcdd2;
}

.scp-checkout-timer__label {
    display: block;
    font-size: 0.65rem;
    color: #c62828;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.scp-checkout-timer__value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #c62828;
}

.scp-checkout-timer-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 4px solid #f0c040;
    background: #fffbea;
    color: #5c4a00;
    font-size: 0.82rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scp-checkout-timer-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scp-checkout-timer-notice__title {
    margin: 0 0 6px;
    font-weight: 700;
}

.scp-checkout-timer-notice__list {
    margin: 0;
    padding-left: 18px;
}

.scp-checkout-timer-notice__list li {
    margin-bottom: 4px;
}

.scp-review-order__products {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.scp-review-order__product {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
}

.scp-review-order__product:last-child {
    border-bottom: none;
}

.scp-review-order__thumb img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.scp-review-order__name {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
}

.scp-review-order__qty {
    font-size: 0.72rem;
    color: #888;
}

.scp-review-order__price {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.scp-review-order__row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.88rem;
}

.scp-review-order__row--total {
    border-top: 1px solid #e8e8e8;
    margin-top: 10px;
    padding-top: 16px;
    font-size: 1.15rem;
    font-weight: 700;
}

.scp-checkout-summary .scp-review-order__totals {
    padding-top: 4px;
}

.scp-review-order__total-value {
    color: var(--scp-accent, #9333ea);
}

.scp-review-order__note {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: #666;
}

/* Cupón en paso Pago */
.scp-checkout-coupon {
    margin-bottom: 20px;
}

.scp-checkout-coupon__hint {
    margin: 0 0 14px;
    font-size: 0.88rem;
    color: #666;
}

.scp-checkout-coupon__form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    margin: 0;
}

.scp-checkout-coupon__field {
    flex: 1 1 220px;
    margin: 0;
    padding: 0;
}

.scp-checkout-coupon__input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.scp-checkout-coupon__actions {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.scp-checkout-coupon__apply {
    min-height: 48px;
    white-space: nowrap;
}

.scp-checkout-page .woocommerce-form-coupon-toggle {
    display: none !important;
}

.scp-checkout-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}

.scp-place-order-hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.scp-place-order-hidden #place_order {
    display: none !important;
}

/* Review blocks */
.scp-review-blocks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scp-review-block {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px;
    background: #fafafa;
}

.scp-review-block__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.scp-review-block__title {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

.scp-review-block__edit {
    background: none;
    border: none;
    color: var(--scp-accent, #9333ea);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.82rem;
}

.scp-review-block__alert {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #f0c040;
    border-radius: 8px;
    background: #fffbea;
    font-size: 0.82rem;
}

.scp-marketing-opt-in {
    margin-top: 12px;
}

/* Leads list page */
.scp-leads-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.scp-leads-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.scp-leads-table th,
.scp-leads-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 0.88rem;
}

.scp-leads-status--converted {
    color: #2e7d32;
    font-weight: 700;
}

.scp-leads-status--abandoned {
    color: #c62828;
    font-weight: 700;
}

.scp-leads-pagination {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.scp-leads-pagination a.is-current {
    font-weight: 700;
    color: var(--scp-accent, #9333ea);
}

/* Checkout form cards */
.scp-form-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.scp-checkout-form .woocommerce-shipping-fields,
.scp-checkout-form .shipping_address {
    width: 100%;
    max-width: 100%;
}

.scp-form-card .woocommerce-shipping-fields__field-wrapper,
.scp-form-card .woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    margin: 0;
}

.scp-form-card .form-row {
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    float: none;
    clear: none;
}

.scp-form-card .form-row-first,
.scp-form-card .form-row-last {
    width: calc(50% - 8px);
}

.scp-form-card .scp-row-quarter,
.scp-form-card .form-row.scp-row-quarter {
    width: calc(50% - 8px);
}

.scp-form-card .scp-field--quarter .scp-field__label {
    white-space: normal;
    max-width: calc(100% - 8px);
    overflow: visible;
    text-overflow: unset;
    line-height: 1.15;
}

.scp-form-card .scp-row-check-inline {
    width: calc(50% - 8px);
}

.scp-form-card .scp-field-row--hidden {
    display: none !important;
    margin: 0;
    height: 0;
    overflow: hidden;
}

/* Section headers */
.scp-checkout-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.scp-checkout-section-head__title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #888;
    text-transform: uppercase;
}

.scp-checkout-section-head__legend {
    font-size: 0.75rem;
    font-style: italic;
    color: #999;
    white-space: nowrap;
}

.scp-checkout-step__title {
    margin: 0 0 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
}

/* Notch fields */
.scp-field {
    position: relative;
    display: block;
    width: 100%;
}

.scp-field__input {
    display: block;
    width: 100%;
    min-height: 56px;
    height: 56px;
    padding: 20px 14px 10px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-size: 1rem;
    color: #222;
    box-sizing: border-box;
    transition: border-color 0.2s;
    line-height: 1.3;
}

.scp-field__input:focus {
    outline: none;
    border-color: var(--scp-accent, #9333ea);
}

.scp-field__label {
    position: absolute;
    top: -10px;
    left: 12px;
    padding: 0 6px;
    background: #fff;
    font-size: 0.78rem;
    color: #666;
    pointer-events: none;
    transition: color 0.15s;
    line-height: 1.2;
    z-index: 2;
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scp-field__input:focus + .scp-field__label {
    color: var(--scp-accent, #9333ea);
}

.scp-field__label .required {
    color: #d32f2f;
    text-decoration: none;
}

.scp-field--select .scp-field__select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e67e22' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.scp-field-radios--stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.scp-field-radios--stacked .scp-field-radios__options {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.scp-field-radios--stacked .scp-field-radios__option {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}

.scp-field-radios--stacked .scp-field-radios__option.is-selected,
.scp-field-radios--stacked .scp-field-radios__option:has(input:checked) {
    border-color: var(--scp-accent, #9333ea);
    background: #faf5ff;
    box-shadow: 0 0 0 1px var(--scp-accent, #9333ea);
}

.scp-field-radios--stacked .scp-field-radios__option.is-selected .scp-field-radios__text,
.scp-field-radios--stacked .scp-field-radios__option:has(input:checked) .scp-field-radios__text {
    color: var(--scp-accent, #9333ea);
}

#billing_invoice_type_field {
    width: 100%;
}

#billing_invoice_type_field .scp-field-radios__legend {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #666;
    text-transform: uppercase;
}

.scp-field__error {
    display: none;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #d32f2f;
}

.scp-field--error .scp-field__error,
.form-row.scp-field--error .scp-field__error {
    display: block;
}

.form-row.scp-field--error .scp-field__input,
.form-row.scp-field--error .scp-field__select {
    border-color: #d32f2f;
}

.form-row.scp-field--disabled .scp-field__input {
    background: #f5f5f5;
    color: #999;
}

/* Anular style.css global: .woocommerce form .form-row input { width:100% } rompe radios */
.scp-checkout-form.woocommerce-checkout .form-row input[type="radio"],
.scp-checkout-form.woocommerce-checkout .form-row input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-width: 20px;
    padding: 0 !important;
    margin: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    background: #fff;
}

.scp-checkout-form.woocommerce-checkout .scp-field-radios:not(.scp-field-radios--stacked) .scp-field-radios__option,
.scp-checkout-form.woocommerce-checkout .scp-field-checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    width: auto;
    margin-bottom: 0;
    font-weight: 600;
    cursor: pointer;
}

.scp-checkout-form.woocommerce-checkout .scp-field-radios--stacked .scp-field-radios__option {
    display: flex !important;
    width: 100% !important;
}

/* Radios */
.scp-field-radios {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.scp-field-radios__legend {
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
}

.scp-field-radios__options {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 20px;
}

.scp-field-radios__option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.scp-field-radios__option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 !important;
}

.scp-field-radios__option input[type="radio"]:checked,
.scp-field-radios__option.is-selected input[type="radio"] {
    border-color: var(--scp-accent, #9333ea) !important;
    background-color: #fff !important;
    box-shadow: inset 0 0 0 5px var(--scp-accent, #9333ea);
}

/* Checkboxes */
.scp-field-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #444;
}

.scp-field-checkbox__input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-width: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin: 0;
    padding: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.scp-field-checkbox__input:checked {
    border-color: var(--scp-accent, #9333ea);
    background: var(--scp-accent, #9333ea);
}

.scp-field-checkbox__input:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Receptor: resumen por defecto + toggle para editar */
.scp-row-recipient-toggle {
    margin-top: 4px;
    margin-bottom: 12px !important;
}

.scp-recipient-summary {
    margin-bottom: 16px !important;
}

.scp-recipient-summary__inner {
    padding: 14px 16px;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.scp-recipient-summary__name {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.scp-recipient-summary__meta {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.scp-recipient-summary__sep {
    margin: 0 6px;
    color: #bbb;
}

.scp-checkout-form:not(.is-recipient-custom) .scp-recipient-field {
    display: none !important;
}

.scp-checkout-form.is-recipient-custom .scp-recipient-summary {
    display: none !important;
}

/* Info / error notes */
.scp-field-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    line-height: 1.45;
    width: 100%;
}

.scp-field-note p {
    margin: 0;
}

.scp-field-note--info {
    background: #fffbea;
    border-left: 4px solid #f0c040;
    color: #5c4a00;
}

.scp-field-note__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f0c040;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
    font-style: italic;
}

.scp-field-note--error,
.scp-checkout-errors {
    background: #fff5f5;
    border: 1px solid #ef9a9a;
    border-left: 4px solid #d32f2f;
    border-radius: 0 8px 8px 0;
    color: #b71c1c;
    padding: 12px 16px;
    margin-bottom: 20px;
}

/* Campos fiscales (Factura A / B) */
.scp-fiscal-field,
.scp-fiscal-note {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    border: none;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.scp-checkout-form.is-fiscal-invoice .scp-fiscal-field.is-visible,
.scp-checkout-form.is-fiscal-invoice .scp-fiscal-note.is-visible,
.scp-fiscal-field.is-visible,
.scp-fiscal-note.is-visible {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 20px !important;
}

.scp-checkout-form.is-fiscal-invoice .scp-fiscal-field.is-visible.form-row-wide,
.scp-fiscal-field.is-visible.form-row-wide {
    max-height: 280px;
}

/* Reset legacy WC labels inside SCP checkout address cards */
.scp-checkout-form .woocommerce-billing-fields > h3,
.scp-checkout-form .woocommerce-shipping-fields > h3,
.scp-checkout-form .scp-form-card label:not(.scp-field__label):not(.scp-field-checkbox):not(.scp-field-radios__option):not(.scp-shipping-rate__label) {
    display: none;
}

/* Evitar que WooCommerce achique los inputs del checkout SCP */
.scp-checkout-form .form-row .input-text,
.scp-checkout-form .form-row input[type="text"],
.scp-checkout-form .form-row input[type="email"],
.scp-checkout-form .form-row input[type="tel"],
.scp-checkout-form .form-row select {
    min-height: 56px;
    font-size: 1rem;
}

.scp-checkout-form .woocommerce-invalid .scp-field__input {
    border-color: #d32f2f;
}

/* Nav buttons */
.scp-checkout-nav .scp-btn--outline {
    border-radius: 8px;
    padding: 14px 28px;
}

.scp-checkout-nav .scp-btn--primary {
    border-radius: 8px;
    padding: 14px 28px;
}

.scp-checkout-nav .scp-btn--primary:disabled,
.scp-checkout-nav .scp-btn--primary.is-disabled {
    background: #bdbdbd;
    border-color: #bdbdbd;
    color: #fff;
    cursor: not-allowed;
}

@media (max-width: 960px) {
    .scp-cart-layout,
    .scp-checkout-layout {
        grid-template-columns: 1fr;
    }

    .scp-cart-totals,
    .scp-checkout-summary {
        position: static;
    }

    .scp-checkout-stepper__label {
        font-size: 0.65rem;
    }
}

@media (min-width: 1100px) {
    .scp-form-card .scp-row-quarter,
    .scp-form-card .form-row.scp-row-quarter {
        width: calc(25% - 12px);
    }
}

@media (max-width: 768px) {
    .scp-form-card .scp-row-quarter,
    .scp-form-card .form-row.scp-row-quarter {
        width: calc(50% - 8px);
    }
}

@media (max-width: 600px) {
    .scp-cart-item {
        grid-template-columns: 80px minmax(0, 1fr);
        align-items: start;
    }

    .scp-cart-item__thumb img {
        width: 80px;
        height: 80px;
    }

    .scp-cart-item__price-col {
        grid-column: 2 / -1;
        text-align: left;
        align-self: start;
        margin-top: -4px;
    }

    .scp-form-card {
        padding: 18px 16px;
    }

    .scp-form-card .form-row-first,
    .scp-form-card .form-row-last,
    .scp-form-card .scp-row-quarter,
    .scp-form-card .scp-row-check-inline {
        width: 100%;
    }

    .scp-checkout-stepper__list {
        overflow-x: auto;
    }
}
