/**
 * Guadalupe Checkout - WooCommerce Blocks
 * Visual limpo, sem bordas duplicadas
 */

/* ══════════════════════════════════════
   CHECKOUT PAGE CONTAINER
   ══════════════════════════════════════ */
.checkout-page {
    background: var(--cream);
    min-height: 60vh;
    padding: 40px 0;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ══════════════════════════════════════
   FONTES
   ══════════════════════════════════════ */
.wc-block-checkout,
.wc-block-checkout *,
.wc-block-cart,
.wc-block-cart * {
    font-family: 'DM Sans', sans-serif !important;
}

.wc-block-components-title,
.wc-block-checkout__sidebar-title,
.wc-block-components-checkout-step__title,
.wc-block-cart__heading {
    font-family: 'DM Serif Display', serif !important;
    color: var(--green-dark) !important;
}

/* ══════════════════════════════════════
   CONTAINER WC BLOCKS - Transparente
   ══════════════════════════════════════ */
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-cart {
    background: transparent !important;
    padding: 0;
    max-width: 100%;
}

/* ══════════════════════════════════════
   SEÇÕES - SEM borda (evita borda dupla)
   ══════════════════════════════════════ */
.wc-block-components-checkout-step {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 24px 0 !important;
    margin-bottom: 16px !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(196, 136, 58, 0.15) !important;
}

.wc-block-components-checkout-step:last-child {
    border-bottom: none !important;
}

.wc-block-components-checkout-step__heading {
    border-bottom: none;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.wc-block-components-checkout-step__title {
    font-size: 1.1rem !important;
    font-weight: 400 !important;
}

/* ══════════════════════════════════════
   MAIN CONTENT - Card único branco
   ══════════════════════════════════════ */
.wc-block-checkout__main {
    background: var(--white) !important;
    border: 1px solid rgba(196, 136, 58, 0.2) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 2px 12px rgba(45, 74, 62, 0.06) !important;
}

/* ══════════════════════════════════════
   INPUTS
   ══════════════════════════════════════ */
.wc-block-components-text-input input,
.wc-block-components-textarea textarea,
.wc-block-components-select-input select,
.wc-block-components-combobox input {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    background: var(--white) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-textarea textarea:focus,
.wc-block-components-combobox input:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(196, 136, 58, 0.12) !important;
    outline: none !important;
}

.wc-block-components-text-input label,
.wc-block-components-combobox label {
    color: var(--text-muted) !important;
}

/* ══════════════════════════════════════
   SIDEBAR - Resumo do pedido
   ══════════════════════════════════════ */
.wc-block-components-sidebar {
    background: transparent !important;
}

.wc-block-components-order-summary {
    background: var(--white) !important;
    border: 1px solid rgba(196, 136, 58, 0.2) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 2px 12px rgba(45, 74, 62, 0.06) !important;
}

.wc-block-components-order-summary-item {
    border-bottom: 1px solid rgba(196, 136, 58, 0.12);
    padding: 16px 0;
}

.wc-block-components-order-summary-item:last-child {
    border-bottom: none;
}

.wc-block-components-order-summary-item__image {
    border-radius: 8px;
    overflow: hidden;
}

.wc-block-components-product-name {
    color: var(--green-dark) !important;
    font-weight: 500 !important;
}

/* ══════════════════════════════════════
   TOTAIS
   ══════════════════════════════════════ */
.wc-block-components-totals-wrapper {
    background: var(--white) !important;
    border: 1px solid rgba(196, 136, 58, 0.2) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-top: 16px !important;
}

.wc-block-components-totals-item {
    padding: 10px 0;
    border-top: 1px solid rgba(196, 136, 58, 0.1);
}

.wc-block-components-totals-item:first-child {
    border-top: none;
}

.wc-block-components-totals-item__label {
    color: var(--text-dark) !important;
}

.wc-block-components-totals-item__value {
    color: var(--green-dark) !important;
    font-weight: 600 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.3rem !important;
    color: var(--gold) !important;
}

/* ══════════════════════════════════════
   RADIO BUTTONS - Reset completo
   ══════════════════════════════════════ */
.wc-block-components-radio-control__option {
    border: none !important;
    border-radius: 0 !important;
    padding: 12px 0 !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(196, 136, 58, 0.1) !important;
}

.wc-block-components-radio-control__option:last-child {
    border-bottom: none !important;
}

.wc-block-components-radio-control__option:hover {
    background: transparent !important;
}

.wc-block-components-radio-control__option--checked {
    background: transparent !important;
}

/* Radio input - bolinha simples */
.wc-block-components-radio-control__input {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #ccc !important;
    border-radius: 50% !important;
    background: var(--white) !important;
    cursor: pointer !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.wc-block-components-radio-control__input:checked {
    border-color: var(--gold) !important;
    background: var(--white) !important;
}

.wc-block-components-radio-control__input:checked::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 8px !important;
    height: 8px !important;
    background: var(--gold) !important;
    border-radius: 50% !important;
}

.wc-block-components-radio-control__label {
    color: var(--text-dark) !important;
    font-weight: 400 !important;
    margin-left: 12px !important;
}

.wc-block-components-radio-control__description {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
}

.wc-block-components-radio-control__secondary-label {
    color: var(--green-dark) !important;
    font-weight: 600 !important;
}

/* ══════════════════════════════════════
   PAYMENT METHODS
   ══════════════════════════════════════ */
.wc-block-components-payment-method-label {
    color: var(--text-dark) !important;
    font-weight: 500 !important;
}

.wc-block-components-payment-method-icons {
    gap: 8px;
}

/* ══════════════════════════════════════
   BOTÃO FINALIZAR
   ══════════════════════════════════════ */
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button {
    background: var(--gold) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 16px 32px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 16px rgba(196, 136, 58, 0.25) !important;
    transition: all 0.25s ease !important;
    width: 100%;
    cursor: pointer;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover {
    background: var(--gold-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 136, 58, 0.35) !important;
}

.wc-block-components-checkout-place-order-button:disabled {
    background: #aaa !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ══════════════════════════════════════
   CUPOM
   ══════════════════════════════════════ */
.wc-block-components-totals-coupon {
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.wc-block-components-totals-coupon__button {
    background: var(--green-dark) !important;
    color: var(--white) !important;
    border-radius: 20px !important;
    padding: 10px 18px !important;
    font-weight: 500 !important;
    transition: background 0.2s !important;
}

.wc-block-components-totals-coupon__button:hover {
    background: var(--green-medium) !important;
}

/* ══════════════════════════════════════
   CHECKBOX
   ══════════════════════════════════════ */
.wc-block-components-checkbox__input {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #ccc !important;
    border-radius: 4px !important;
    background: var(--white) !important;
    cursor: pointer !important;
    position: relative !important;
}

.wc-block-components-checkbox__input:checked {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
}

.wc-block-components-checkbox__input:checked::after {
    content: '✓' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: var(--white) !important;
    font-size: 12px !important;
    font-weight: bold !important;
}

.wc-block-components-checkbox__label {
    color: var(--text-dark) !important;
}

/* ══════════════════════════════════════
   LINKS
   ══════════════════════════════════════ */
.wc-block-checkout a,
.wc-block-cart a {
    color: var(--gold) !important;
}

.wc-block-checkout a:hover,
.wc-block-cart a:hover {
    color: var(--gold-light) !important;
}

/* ══════════════════════════════════════
   NOTICES
   ══════════════════════════════════════ */
.wc-block-components-notice-banner {
    border-radius: 8px !important;
    border-left: 4px solid var(--gold) !important;
    background: var(--white) !important;
    padding: 14px !important;
}

.wc-block-components-notice-banner.is-error {
    border-left-color: #dc3545 !important;
}

.wc-block-components-notice-banner.is-success {
    border-left-color: var(--green-dark) !important;
}

/* ══════════════════════════════════════
   CARRINHO - ITENS
   ══════════════════════════════════════ */
.wc-block-cart-items {
    background: var(--white) !important;
    border: 1px solid rgba(196, 136, 58, 0.2) !important;
    border-radius: 12px !important;
    padding: 24px !important;
}

.wc-block-cart-items__row {
    border-bottom: 1px solid rgba(196, 136, 58, 0.12);
    padding: 16px 0;
}

.wc-block-cart-items__row:last-child {
    border-bottom: none;
}

.wc-block-cart-item__quantity .wc-block-components-quantity-selector {
    border: 1px solid #ddd;
    border-radius: 8px;
}

.wc-block-cart-item__remove-link {
    color: var(--text-muted) !important;
}

.wc-block-cart-item__remove-link:hover {
    color: #dc3545 !important;
}

/* ══════════════════════════════════════
   SPINNER
   ══════════════════════════════════════ */
.wc-block-components-spinner::after {
    border-color: var(--gold) transparent transparent !important;
}

/* ══════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════ */
@media (max-width: 768px) {
    .checkout-page {
        padding: 24px 0;
    }

    .checkout-container {
        padding: 0 16px;
    }

    .wc-block-checkout__main {
        padding: 18px !important;
    }

    .wc-block-components-order-summary {
        padding: 18px !important;
    }

    .wc-block-components-checkout-place-order-button,
    .wc-block-cart__submit-button {
        padding: 14px 24px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .checkout-page {
        padding: 16px 0;
    }

    .checkout-container {
        padding: 0 12px;
    }

    .wc-block-components-checkout-step__title {
        font-size: 1rem !important;
    }
}
