/* ============================================================
   ByClinic cart + checkout styles
   ============================================================ */

.bc-cart, .bc-checkout {
    font-family: inherit;
    color: var(--bc-text, #1a1a1a);
}

/* Reset theme heading interference */
.bc-cart h1, .bc-cart h2, .bc-cart h3, .bc-cart h4,
.bc-checkout h1, .bc-checkout h2, .bc-checkout h3, .bc-checkout h4 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-family: inherit;
}

/* ===== Shared button ===== */
.bc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition: background 0.15s ease, color 0.15s ease;
    box-shadow: none !important;
    line-height: 1.3;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.bc-btn--primary {
    background: var(--bc-teal, #1ab5a8) !important;
    color: #fff !important;
}
.bc-btn--primary:hover {
    background: var(--bc-teal-dark, #0f8d83) !important;
    color: #fff !important;
}
.bc-btn--secondary {
    background: var(--bc-teal-light, #e6f7f5) !important;
    color: var(--bc-teal-dark, #0f8d83) !important;
}
.bc-btn--secondary:hover {
    background: var(--bc-teal, #1ab5a8) !important;
    color: #fff !important;
}

/* ============================================================
   CART PAGE
   ============================================================ */

.bc-cart__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ececec;
}
.bc-cart__title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: var(--bc-text, #1a1a1a) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}
.bc-cart__continue {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--bc-text-mute, #6b6b6b);
    text-decoration: none !important;
    font-size: 0.88rem;
    transition: color 0.15s ease;
}
.bc-cart__continue:hover {
    color: var(--bc-teal-dark, #0f8d83);
}

.bc-cart__layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

/* ===== Empty cart ===== */
.bc-cart__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
}
.bc-cart__empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--bc-teal-light, #e6f7f5);
    color: var(--bc-teal-dark, #0f8d83);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bc-cart__empty-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.5rem !important;
    color: var(--bc-text, #1a1a1a) !important;
}
.bc-cart__empty-text {
    color: var(--bc-text-mute, #6b6b6b);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}

/* ===== Cart items ===== */
.bc-cart__items {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
}
.bc-cart__items-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #ececec;
    background: #fafafa;
    font-size: 0.85rem;
    color: var(--bc-text-mute, #6b6b6b);
    font-weight: 500;
}

.bc-cart__item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto 32px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #ececec;
    transition: background 0.15s ease;
}
.bc-cart__item:last-child { border-bottom: none; }
.bc-cart__item.is-removing {
    opacity: 0.4;
    pointer-events: none;
}

.bc-cart__item-img {
    width: 80px;
    height: 80px;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bc-cart__item-img a, .bc-cart__item-img img {
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.bc-cart__item-info { min-width: 0; }
.bc-cart__item-name {
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: var(--bc-text, #1a1a1a) !important;
    margin: 0 0 0.3rem !important;
    line-height: 1.35 !important;
}
.bc-cart__item-name a {
    color: inherit !important;
    text-decoration: none !important;
}
.bc-cart__item-name a:hover {
    color: var(--bc-teal-dark, #0f8d83) !important;
}
.bc-cart__item-meta {
    font-size: 0.8rem;
    color: var(--bc-text-mute, #6b6b6b);
}
.bc-cart__item-meta p { margin: 0; }
.bc-cart__item-price-mobile { display: none; }

.bc-cart__item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bc-teal-dark, #0f8d83);
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}
.bc-cart__item-price del {
    color: var(--bc-text-mute, #6b6b6b);
    font-weight: 400;
    font-size: 0.78rem;
    display: block;
}
.bc-cart__item-price ins {
    text-decoration: none;
    background: none;
}

.bc-cart__item-remove {
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    border-radius: 6px;
    color: var(--bc-text-mute, #6b6b6b) !important;
    cursor: pointer;
    padding: 0 !important;
    transition: background 0.15s ease, color 0.15s ease;
    box-shadow: none !important;
}
.bc-cart__item-remove:hover {
    background: #fde8ea !important;
    color: #e63946 !important;
}

/* Quantity selector */
.bc-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.bc-qty__btn {
    width: 32px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    border: none !important;
    cursor: pointer;
    color: var(--bc-text, #1a1a1a) !important;
    padding: 0 !important;
    transition: background 0.15s ease;
    box-shadow: none !important;
}
.bc-qty__btn:hover {
    background: var(--bc-teal-light, #e6f7f5) !important;
    color: var(--bc-teal-dark, #0f8d83) !important;
}
.bc-qty__input {
    width: 40px;
    height: 36px;
    border: none !important;
    border-left: 1px solid #d4d4d4 !important;
    border-right: 1px solid #d4d4d4 !important;
    text-align: center;
    font-size: 0.9rem !important;
    font-weight: 500;
    color: var(--bc-text, #1a1a1a) !important;
    background: #fff !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    appearance: textfield;
    -moz-appearance: textfield;
}
.bc-qty__input::-webkit-outer-spin-button,
.bc-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.bc-qty__input:focus { outline: none !important; }

/* ===== Order summary ===== */
.bc-cart__summary {
    position: sticky;
    top: 1rem;
}
.bc-summary {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 1.5rem;
}
.bc-summary__title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 0 1.25rem !important;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ececec;
    color: var(--bc-text, #1a1a1a) !important;
}
.bc-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--bc-text, #1a1a1a);
}
.bc-summary__row small {
    color: var(--bc-text-mute, #6b6b6b);
    font-size: 0.78rem;
}
.bc-summary__row--coupon {
    color: var(--bc-teal-dark, #0f8d83);
    font-size: 0.85rem;
}
.bc-summary__row--coupon strong {
    background: var(--bc-teal-light, #e6f7f5);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.78rem;
    margin: 0 0.25rem;
}
.bc-summary__coupon-remove {
    background: none !important;
    border: none !important;
    color: var(--bc-text-mute, #6b6b6b) !important;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0.25rem !important;
    line-height: 1;
    box-shadow: none !important;
}
.bc-summary__coupon-remove:hover { color: #e63946 !important; }
.bc-summary__discount { color: var(--bc-teal-dark, #0f8d83); font-weight: 500; }

.bc-summary__row--total {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ececec;
    font-size: 1.1rem;
    font-weight: 700;
}
.bc-summary__row--total > span:last-child {
    color: var(--bc-teal-dark, #0f8d83);
}

.bc-summary__coupon {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #ececec;
}
.bc-summary__coupon-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bc-text-mute, #6b6b6b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.bc-summary__coupon-inputs {
    display: flex;
    gap: 0.5rem;
}
.bc-summary__coupon-input {
    flex: 1;
    padding: 0.55rem 0.7rem !important;
    border: 1px solid #d4d4d4 !important;
    border-radius: 6px !important;
    font-size: 0.88rem !important;
    background: #fff !important;
    color: var(--bc-text, #1a1a1a) !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}
.bc-summary__coupon-input:focus {
    outline: none !important;
    border-color: var(--bc-teal, #1ab5a8) !important;
    box-shadow: 0 0 0 3px var(--bc-teal-light, #e6f7f5) !important;
}
.bc-summary__coupon-btn {
    padding: 0.55rem 1rem !important;
    background: var(--bc-text, #1a1a1a) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    cursor: pointer;
    transition: background 0.15s ease;
    box-shadow: none !important;
    white-space: nowrap;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.bc-summary__coupon-btn:hover {
    background: #000 !important;
}

.bc-summary__checkout {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.9rem 1rem !important;
    font-size: 0.95rem !important;
}

.bc-summary__trust {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #ececec;
}
.bc-summary__trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--bc-text-mute, #6b6b6b);
}

/* ===== Cross-sells / related ===== */
.bc-cart__related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ececec;
}
.bc-cart__related-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin: 0 0 1.25rem !important;
    color: var(--bc-text, #1a1a1a) !important;
}
.bc-cart__related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* ============================================================
   CART small additions
   ============================================================ */

/* Smaller coupon label, matching the section title style */
.bc-summary__coupon-label {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: var(--bc-text-mute, #6b6b6b) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 0 0.5rem !important;
    line-height: 1.3 !important;
}

/* VAT rows */
.bc-summary__row--tax {
    color: var(--bc-text-mute, #6b6b6b);
    font-size: 0.85rem;
}

.bc-summary__tax-note {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: var(--bc-text-mute, #6b6b6b);
    text-align: right;
    font-style: italic;
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */

.bc-checkout__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ececec;
}
.bc-checkout__title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: var(--bc-text, #1a1a1a) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}
.bc-checkout__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--bc-text-mute, #6b6b6b);
    text-decoration: none !important;
    font-size: 0.88rem;
    white-space: nowrap;
}
.bc-checkout__back:hover {
    color: var(--bc-teal-dark, #0f8d83);
}

.bc-checkout__empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
}
.bc-checkout__empty p {
    color: var(--bc-text-mute, #6b6b6b);
    margin: 0 0 1.5rem;
}

/* Notices area */
.bc-checkout__notices:empty { display: none; }
.bc-checkout__notices > .woocommerce-info,
.bc-checkout__notices > .woocommerce-error,
.bc-checkout__notices > .woocommerce-message,
.bc-checkout__notices ul.woocommerce-error,
.bc-checkout__notices ul.woocommerce-info {
    background: #fff;
    border: 1px solid #ececec;
    border-left: 4px solid var(--bc-teal, #1ab5a8);
    border-radius: 8px;
    padding: 0.85rem 1.1rem !important;
    font-size: 0.88rem;
    color: var(--bc-text, #1a1a1a);
    margin-bottom: 0.75rem !important;
    list-style: none !important;
    display: flex;
    align-items: center;
    gap: 1rem;
    line-height: 1.4;
}
.bc-checkout__notices > .woocommerce-info::before,
.bc-checkout__notices > .woocommerce-message::before,
.bc-checkout__notices > .woocommerce-error::before {
    display: none !important;
}
.bc-checkout__notices ul.woocommerce-error li {
    margin: 0;
    padding: 0;
}
.bc-checkout__notices > .woocommerce-error,
.bc-checkout__notices ul.woocommerce-error {
    border-left-color: #e63946;
    background: #fef5f6;
    color: #c1121f;
}

/* Hide the "Tienes un cupón" toggle on checkout (users apply coupons in cart) */
.bc-checkout .woocommerce-form-coupon-toggle,
.bc-checkout .checkout_coupon,
.bc-checkout .woocommerce-form-login-toggle + .woocommerce-form-login {
    display: none !important;
}
/* But keep the login toggle/form visible if guest checkout is enabled */
.bc-checkout .woocommerce-form-login-toggle {
    display: block;
    margin-bottom: 1rem;
}
.bc-checkout .woocommerce-form-login-toggle a {
    color: var(--bc-teal-dark, #0f8d83);
    font-weight: 600;
}

/* WC notice CTA button (e.g., "Ver carrito") */
.bc-checkout__notices .button,
.bc-checkout__notices a.button {
    margin-left: auto !important;
    background: var(--bc-teal, #1ab5a8) !important;
    color: #fff !important;
    padding: 0.45rem 0.9rem !important;
    border-radius: 6px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    white-space: nowrap;
}
.bc-checkout__notices > .woocommerce-error .button { background: #c1121f !important; }

/* ===== Layout: forced 2 columns ===== */
.bc-checkout__form { display: block; }

.bc-checkout__layout {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 2rem;
    align-items: start;
}
.bc-checkout__main { min-width: 0; }
.bc-checkout__sidebar {
    position: sticky;
    top: 1rem;
    min-width: 0;
}

/* ===== Section cards ===== */
.bc-checkout__section {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.bc-checkout__section:last-child { margin-bottom: 0; }
.bc-checkout__section-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--bc-text, #1a1a1a) !important;
    margin: 0 0 1.1rem !important;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #ececec;
    line-height: 1.3 !important;
}

/* Hide WC's default "Datos de facturación" / "Tu pedido" h3 (we use our section titles) */
.bc-checkout .woocommerce-billing-fields > h3,
.bc-checkout #order_review_heading {
    display: none !important;
}
.bc-checkout .woocommerce-shipping-fields h3,
.bc-checkout .woocommerce-additional-fields h3 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--bc-text, #1a1a1a) !important;
    margin: 1.5rem 0 0.85rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #ececec !important;
    border-bottom: none !important;
    line-height: 1.3 !important;
}

/* WC form rows */
.bc-checkout .form-row {
    margin: 0 0 1rem !important;
    padding: 0 !important;
}
.bc-checkout .form-row label {
    display: block !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    color: var(--bc-text, #1a1a1a) !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.3 !important;
}
.bc-checkout .form-row .required {
    color: var(--bc-teal-dark, #0f8d83);
    text-decoration: none;
    margin-left: 0.15rem;
    font-weight: 600;
}
.bc-checkout .form-row .optional {
    color: var(--bc-text-mute, #6b6b6b);
    font-weight: 400;
    font-size: 0.78rem;
    margin-left: 0.2rem;
}

/* Form inputs */
.bc-checkout .form-row input.input-text,
.bc-checkout .form-row textarea,
.bc-checkout .form-row select {
    width: 100% !important;
    padding: 0.65rem 0.85rem !important;
    border: 1px solid #d4d4d4 !important;
    border-radius: 6px !important;
    font-size: 0.92rem !important;
    font-family: inherit !important;
    background: #fff !important;
    color: var(--bc-text, #1a1a1a) !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    height: auto !important;
    margin: 0 !important;
}
.bc-checkout .form-row input.input-text:focus,
.bc-checkout .form-row textarea:focus,
.bc-checkout .form-row select:focus {
    outline: none !important;
    border-color: var(--bc-teal, #1ab5a8) !important;
    box-shadow: 0 0 0 3px var(--bc-teal-light, #e6f7f5) !important;
}
.bc-checkout .form-row textarea { min-height: 90px; resize: vertical; }

/* Validation states */
.bc-checkout .form-row.woocommerce-invalid input.input-text,
.bc-checkout .form-row.woocommerce-invalid select {
    border-color: #e63946 !important;
}
.bc-checkout .form-row.woocommerce-validated input.input-text {
    border-color: var(--bc-teal, #1ab5a8) !important;
}

/* Select2 (WC's country/state dropdowns) */
.bc-checkout .select2-container { width: 100% !important; }
.bc-checkout .select2-container--default .select2-selection--single {
    height: auto !important;
    padding: 0.5rem 0.85rem !important;
    border: 1px solid #d4d4d4 !important;
    border-radius: 6px !important;
    background: #fff !important;
}
.bc-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5 !important;
    padding: 0 !important;
    color: var(--bc-text, #1a1a1a) !important;
    font-size: 0.92rem !important;
}
.bc-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 0.5rem !important;
}
.bc-checkout .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--bc-teal, #1ab5a8) !important;
    box-shadow: 0 0 0 3px var(--bc-teal-light, #e6f7f5) !important;
}

/* Two-column form rows */
.bc-checkout .form-row-first,
.bc-checkout .form-row-last {
    width: calc(50% - 0.5rem) !important;
    display: inline-block !important;
    vertical-align: top !important;
    margin-bottom: 1rem !important;
}
.bc-checkout .form-row-first { margin-right: 1rem !important; }
.bc-checkout .form-row-wide { width: 100% !important; clear: both; }

/* Checkboxes */
.bc-checkout .form-row.checkbox,
.bc-checkout .woocommerce-form__label-checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    cursor: pointer;
    margin-bottom: 0.5rem !important;
}
.bc-checkout .form-row.checkbox label {
    display: inline !important;
    margin: 0 !important;
    font-weight: 400 !important;
    cursor: pointer;
}
.bc-checkout input[type="checkbox"],
.bc-checkout input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--bc-teal, #1ab5a8);
    flex-shrink: 0;
    cursor: pointer;
}

/* ============================================================
   Custom Order Review (right sidebar)
   ============================================================ */

/* Hide WC's default table — we render our own */
.bc-checkout .woocommerce-checkout-review-order-table,
.bc-checkout #order_review_heading {
    display: none !important;
}

.bc-checkout-review {
    margin: 0;
}

.bc-checkout-review__items {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ececec;
}
.bc-checkout-review__item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f5f5f5;
}
.bc-checkout-review__item:last-child { border-bottom: none; }

.bc-checkout-review__img {
    position: relative;
    width: 48px;
    height: 48px;
    background: #fafafa;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bc-checkout-review__img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.bc-checkout-review__qty {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--bc-text, #1a1a1a);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    border: 2px solid #fff;
}

.bc-checkout-review__info { min-width: 0; }
.bc-checkout-review__name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--bc-text, #1a1a1a);
    line-height: 1.3;
    display: block;
    word-break: break-word;
}

.bc-checkout-review__price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bc-text, #1a1a1a);
    white-space: nowrap;
    text-align: right;
}

.bc-checkout-review__totals {
    margin-bottom: 0;
}
.bc-checkout-review__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    font-size: 0.88rem;
    color: var(--bc-text, #1a1a1a);
}
.bc-checkout-review__row--coupon {
    color: var(--bc-teal-dark, #0f8d83);
    font-size: 0.82rem;
}
.bc-checkout-review__row--coupon strong {
    background: var(--bc-teal-light, #e6f7f5);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.76rem;
    margin-left: 0.25rem;
}
.bc-checkout-review__row--total {
    margin-top: 0.6rem;
    padding-top: 0.85rem;
    border-top: 2px solid var(--bc-text, #1a1a1a);
    font-size: 1.1rem;
    font-weight: 700;
}
.bc-checkout-review__row--total span:last-child {
    color: var(--bc-teal-dark, #0f8d83);
}
.bc-checkout-review__tax-note {
    margin: 0.4rem 0 0;
    font-size: 0.72rem;
    color: var(--bc-text-mute, #6b6b6b);
    text-align: right;
    font-style: italic;
}

/* Shipping row + dropdown */
.bc-checkout-review__row--shipping {
    align-items: flex-start;
}
.bc-checkout-review__row--shipping small {
    color: var(--bc-text-mute, #6b6b6b);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.4;
    display: inline-block;
    text-align: right;
}
.bc-checkout-review__shipping-select {
    padding: 0.4rem 0.6rem !important;
    border: 1px solid #d4d4d4 !important;
    border-radius: 6px !important;
    font-size: 0.82rem !important;
    background: #fff !important;
    color: var(--bc-text, #1a1a1a) !important;
    width: auto !important;
    max-width: 100%;
    font-family: inherit !important;
    cursor: pointer;
    box-shadow: none !important;
    height: auto !important;
    line-height: 1.4 !important;
}
.bc-checkout-review__shipping-select:focus {
    outline: none !important;
    border-color: var(--bc-teal, #1ab5a8) !important;
    box-shadow: 0 0 0 3px var(--bc-teal-light, #e6f7f5) !important;
}

/* ============================================================
   Payment methods
   ============================================================ */

.bc-checkout-payment {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ececec;
}
.bc-checkout-payment__title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--bc-text, #1a1a1a) !important;
    margin: 0 0 0.85rem !important;
    line-height: 1.3 !important;
}

.bc-checkout #payment {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.bc-checkout #payment ul.payment_methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}
.bc-checkout #payment ul.payment_methods li {
    background: #fafafa !important;
    border: 1.5px solid #ececec !important;
    border-radius: 8px !important;
    padding: 0.85rem 1rem !important;
    margin: 0 0 0.5rem !important;
    transition: background 0.15s ease, border-color 0.15s ease;
    list-style: none !important;
}
.bc-checkout #payment ul.payment_methods li.is-selected {
    background: var(--bc-teal-light, #e6f7f5) !important;
    border-color: var(--bc-teal, #1ab5a8) !important;
}
.bc-checkout #payment ul.payment_methods li > label {
    display: flex !important;
    align-items: center;
    gap: 0.6rem !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    color: var(--bc-text, #1a1a1a) !important;
    cursor: pointer;
    margin: 0 !important;
    line-height: 1.3 !important;
}
.bc-checkout #payment ul.payment_methods li label img {
    max-height: 22px;
    margin-left: auto;
    border-radius: 3px;
}
.bc-checkout #payment .payment_box {
    background: #fff !important;
    border-radius: 6px !important;
    margin: 0.65rem 0 0 !important;
    padding: 0.75rem 0.9rem !important;
    font-size: 0.8rem !important;
    color: var(--bc-text-mute, #6b6b6b) !important;
    border: 1px solid #ececec !important;
    line-height: 1.45 !important;
}
.bc-checkout #payment .payment_box::before {
    display: none !important;
}
.bc-checkout #payment .payment_box p { margin: 0 0 0.4rem; }
.bc-checkout #payment .payment_box p:last-child { margin-bottom: 0; }

/* Terms + privacy */
.bc-checkout .woocommerce-terms-and-conditions-wrapper {
    margin: 1.25rem 0 0;
    font-size: 0.85rem;
}
.bc-checkout .woocommerce-privacy-policy-text {
    font-size: 0.78rem;
    color: var(--bc-text-mute, #6b6b6b);
    line-height: 1.5;
    margin: 1rem 0;
}
.bc-checkout .woocommerce-privacy-policy-text p {
    margin: 0;
}
.bc-checkout .woocommerce-privacy-policy-text a {
    color: var(--bc-teal-dark, #0f8d83);
    font-weight: 500;
}

/* Place order button */
.bc-checkout #place_order {
    display: block !important;
    width: 100% !important;
    margin: 1.25rem 0 0 !important;
    padding: 0.95rem 1.25rem !important;
    background: var(--bc-teal, #1ab5a8) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-align: center;
    float: none !important;
    line-height: 1.3 !important;
}
.bc-checkout #place_order:hover {
    background: var(--bc-teal-dark, #0f8d83) !important;
}
.bc-checkout #place_order:disabled,
.bc-checkout #place_order[disabled] {
    background: #ccc !important;
    cursor: not-allowed;
}

/* Loading overlay during AJAX */
.bc-checkout .blockUI.blockOverlay {
    background: rgba(255,255,255,0.7) !important;
    z-index: 100 !important;
}
.bc-checkout .blockUI.blockOverlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -18px 0 0 -18px;
    width: 36px;
    height: 36px;
    border: 3px solid var(--bc-teal-light, #e6f7f5);
    border-top-color: var(--bc-teal, #1ab5a8);
    border-radius: 50%;
    animation: bc-spin 0.8s linear infinite;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
    .bc-cart__layout { grid-template-columns: 1fr; }
    .bc-cart__summary { position: static; }
    .bc-checkout__layout {
        grid-template-columns: 1fr !important;
    }
    .bc-checkout__sidebar { position: static; }
}

@media (max-width: 600px) {
    .bc-cart__title,
    .bc-checkout__title { font-size: 1.4rem !important; }

    .bc-cart__item {
        grid-template-columns: 70px 1fr 32px;
        gap: 0.75rem;
        padding: 1rem;
    }
    .bc-cart__item-img { width: 70px; height: 70px; }
    .bc-cart__item-price { display: none; }
    .bc-cart__item-price-mobile {
        display: block;
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--bc-teal-dark, #0f8d83);
        margin-top: 0.25rem;
    }
    .bc-cart__item-qty {
        grid-column: 2 / 3;
        justify-self: start;
        margin-top: 0.4rem;
    }
    .bc-cart__item-remove { align-self: flex-start; }

    .bc-checkout__section { padding: 1.25rem; }
    .bc-checkout .form-row-first,
    .bc-checkout .form-row-last {
        width: 100% !important;
        margin: 0 0 1rem !important;
    }

    .bc-cart__related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

/* Shipping address toggle "¿Enviar a una dirección diferente?" */
.bc-checkout #ship-to-different-address,
.bc-checkout .woocommerce-shipping-fields h3#ship-to-different-address {
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: var(--bc-text, #1a1a1a) !important;
    margin: 0 0 1rem !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.4 !important;
}
.bc-checkout #ship-to-different-address label,
.bc-checkout #ship-to-different-address-checkbox + span,
.bc-checkout .woocommerce-shipping-fields h3#ship-to-different-address label {
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    margin: 0 !important;
}
.bc-checkout #ship-to-different-address-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--bc-teal, #1ab5a8);
    cursor: pointer;
    vertical-align: middle;
}

/* ============================================================
   B2B: company toggle + conditional fields
   ============================================================ */

.bc-checkout .form-row.bc-b2b-toggle {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 0.85rem 1rem !important;
    margin: 0.5rem 0 1.25rem !important;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.bc-checkout .form-row.bc-b2b-toggle:has(input:checked),
.bc-checkout .form-row.bc-b2b-toggle.is-checked {
    background: var(--bc-teal-light, #e6f7f5);
    border-color: var(--bc-teal, #1ab5a8);
}

.bc-checkout .form-row.bc-b2b-toggle label {
    display: flex !important;
    align-items: center;
    gap: 0.6rem !important;
    cursor: pointer;
    margin: 0 !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: var(--bc-text, #1a1a1a) !important;
    line-height: 1.4 !important;
}

.bc-checkout .form-row.bc-b2b-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--bc-teal, #1ab5a8);
    cursor: pointer;
    margin: 0 !important;
    flex-shrink: 0;
}

/* Hide B2B fields by default, JS will show them */
.bc-checkout .form-row.bc-b2b-field {
    display: none !important;
}
.bc-checkout.bc-b2b-active .form-row.bc-b2b-field {
    display: block !important;
}

/* Smooth reveal */
.bc-checkout .form-row.bc-b2b-field {
    animation: bcB2BFadeIn 0.25s ease-out;
}
@keyframes bcB2BFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* CIF veld: kleine help-tekst onder het label */
.bc-checkout #billing_cif_field label::after {
    content: ' (opcional)';
    color: var(--bc-text-mute, #6b6b6b);
    font-weight: 400;
    font-size: 0.78rem;
    margin-left: 0.2rem;
}