/**
 * GVN Checkout - Estilos do Checkout Personalizado
 * @version 1.13.37
 */

/* ========================================
   Theme Container Breakout (Largura Total)
   ======================================== */

body:where(:not(.gvn-checkout-isolated)).gvn-checkout-active .entry-content,
body:where(:not(.gvn-checkout-isolated)).gvn-checkout-active .site-main,
body:where(:not(.gvn-checkout-isolated)).gvn-checkout-active .wp-site-blocks,
body:where(:not(.gvn-checkout-isolated)).gvn-checkout-active .site-content,
body:where(:not(.gvn-checkout-isolated)).gvn-checkout-active #content,
body:where(:not(.gvn-checkout-isolated)).gvn-checkout-active .col-full,
body:where(:not(.gvn-checkout-isolated)).gvn-checkout-active .ast-container,
body:where(:not(.gvn-checkout-isolated)).gvn-checkout-active article,
body:where(:not(.gvn-checkout-isolated)).gvn-checkout-active .page,
body:where(:not(.gvn-checkout-isolated)).gvn-checkout-active .hentry,
body:where(:not(.gvn-checkout-isolated)).woocommerce-checkout .entry-content,
body:where(:not(.gvn-checkout-isolated)).woocommerce-checkout .site-main,
body:where(:not(.gvn-checkout-isolated)).woocommerce-checkout .wp-site-blocks,
body:where(:not(.gvn-checkout-isolated)).woocommerce-checkout .site-content,
body:where(:not(.gvn-checkout-isolated)).woocommerce-checkout #content,
body:where(:not(.gvn-checkout-isolated)).woocommerce-checkout .col-full,
body:where(:not(.gvn-checkout-isolated)).woocommerce-checkout .ast-container,
body:where(:not(.gvn-checkout-isolated)).woocommerce-checkout article,
body:where(:not(.gvn-checkout-isolated)).woocommerce-checkout .page,
body:where(:not(.gvn-checkout-isolated)).woocommerce-checkout .hentry,
:where(body:not(.gvn-checkout-isolated)) .entry-content:has(#gvn-checkout),
:where(body:not(.gvn-checkout-isolated)) .site-main:has(#gvn-checkout),
:where(body:not(.gvn-checkout-isolated)) .wp-site-blocks:has(#gvn-checkout),
:where(body:not(.gvn-checkout-isolated)) article:has(#gvn-checkout),
:where(body:not(.gvn-checkout-isolated)) .entry-content:has(.gvn-checkout),
:where(body:not(.gvn-checkout-isolated)) .site-main:has(.gvn-checkout),
:where(body:not(.gvn-checkout-isolated)) .wp-site-blocks:has(.gvn-checkout),
:where(body:not(.gvn-checkout-isolated)) article:has(.gvn-checkout) {
    max-width: 1240px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Força container nativo de blocos FSE (Full Site Editing) a expandir */
body:where(:not(.gvn-checkout-isolated)).gvn-checkout-active .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body:where(:not(.gvn-checkout-isolated)).woocommerce-checkout .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
:where(body:not(.gvn-checkout-isolated)) .is-layout-constrained:has(#gvn-checkout) > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
:where(body:not(.gvn-checkout-isolated)) .is-layout-constrained:has(.gvn-checkout) > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 1240px !important;
    width: 100% !important;
}

body.gvn-checkout-isolated .gvn-checkout,
body.gvn-checkout-isolated #gvn-checkout {
    box-sizing: border-box;
    max-width: 1240px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.gvn-checkout-isolated.gvn-checkout-expand-article article:has(#gvn-checkout),
body.gvn-checkout-isolated.gvn-checkout-expand-article article:has(.gvn-checkout),
body.gvn-checkout-isolated.gvn-checkout-expand-content .entry-content:has(#gvn-checkout),
body.gvn-checkout-isolated.gvn-checkout-expand-content .entry-content:has(.gvn-checkout),
body.gvn-checkout-isolated.gvn-checkout-expand-content .wp-block-post-content:has(#gvn-checkout),
body.gvn-checkout-isolated.gvn-checkout-expand-content .wp-block-post-content:has(.gvn-checkout) {
    max-width: none !important;
}

/* ========================================
   Reset & Base
   ======================================== */

.gvn-checkout *,
.gvn-checkout *::before,
.gvn-checkout *::after {
    box-sizing: border-box;
}

.gvn-checkout {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

.gvn-checkout a {
    text-decoration: none;
}

.gvn-hidden-field {
    display: none !important;
}

/* Ocultar formulário de cupom padrão do WooCommerce que vaza no topo */
.woocommerce-form-coupon-toggle,
.woocommerce-form-coupon,
.woocommerce-checkout > .woocommerce-form-coupon-toggle,
.woocommerce-checkout > .woocommerce-form-coupon {
    display: none !important;
}

/* ========================================
   Header
   ======================================== */

.gvn-header {
    width: 100%;
    background-color: var(--gvn-header-bg, #3a4759);
    color: #ffffff;
    padding: 1.125rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 1rem 1rem;
    margin: 0 0 2rem 0;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.12);
}

.gvn-header__text {
    font-weight: 700;
    font-size: calc(15.2px * var(--gvn-font-scale, 1));
    letter-spacing: -0.01em;
}

.gvn-header__badge {
    background-color: var(--gvn-badge-bg, #ff8a22);
    color: #ffffff;
    padding: 0.45rem 0.875rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: calc(11.2px * var(--gvn-font-scale, 1));
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.gvn-header__badge-icon {
    width: 0.85rem;
    height: 0.85rem;
}

/* ========================================
   Title
   ======================================== */

.gvn-title {
    margin: 1.5rem 0 2rem;
    padding: 0 0.25rem;
    width: 100%;
}

.gvn-title__heading {
    font-size: calc(32px * var(--gvn-font-scale, 1));
    font-weight: 900;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0;
}

.gvn-title__dot {
    color: #ef4444;
    font-size: calc(32px * var(--gvn-font-scale, 1));
    line-height: 1;
}

.gvn-title__sub {
    color: #64748b;
    font-size: calc(15px * var(--gvn-font-scale, 1));
    margin-top: 0.35rem;
    font-weight: 500;
}

/* ========================================
   Grid Layout (2 Colunas que Preenchem 100%)
   ======================================== */

.gvn-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: start;
    width: 100%;
}

.gvn-col-main-details {
    width: 100%;
    min-width: 0;
}

.gvn-col-main-payment {
    width: 100%;
    min-width: 0;
}

.gvn-col-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: 100%;
    min-width: 0;
}

@media (min-width: 1024px) {
    .gvn-grid {
        grid-template-columns: minmax(0, 1fr) 380px;
        grid-template-areas:
            "details sidebar"
            "payment sidebar";
        gap: 1.75rem 2rem;
        width: 100%;
    }

    .gvn-col-main-details {
        grid-area: details;
        width: 100%;
    }

    .gvn-col-main-payment {
        grid-area: payment;
        width: 100%;
    }

    .gvn-col-sidebar {
        grid-area: sidebar;
        width: 100%;
        position: sticky;
        top: 1.5rem;
    }
}

/* Compatibilidade retroativa com templates legados */
.gvn-col-main {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: 100%;
    min-width: 0;
}
.gvn-col-left {
    width: 100%;
}
.gvn-col-right {
    width: 100%;
}
.gvn-col-full {
    width: 100%;
}

/* ========================================
   Cards
   ======================================== */

.gvn-checkout #customer_details.gvn-card,
.gvn-checkout .gvn-col-sidebar > .col2-set {
    width: 100%;
    float: none;
}

.gvn-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.gvn-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

.gvn-card__header {
    background-color: var(--gvn-primary, #0066d4);
    color: #ffffff;
    padding: 0.875rem 1.25rem;
    font-size: calc(12px * var(--gvn-font-scale, 1));
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gvn-card--summary .gvn-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.gvn-card--summary .gvn-edit-cart {
    color: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.gvn-card--summary .gvn-edit-cart:hover,
.gvn-card--summary .gvn-edit-cart:focus-visible {
    color: inherit;
    text-decoration-thickness: 2px;
}

.gvn-card__body {
    padding: 1.5rem;
    width: 100%;
}

/* ========================================
   Form Fields
   ======================================== */

.gvn-fields-dynamic {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    width: 100%;
}

.gvn-checkout-steps {
    flex: 0 0 100%;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.gvn-checkout-steps__count {
    display: block;
    font-size: calc(12px * var(--gvn-font-scale, 1));
    color: #64748b;
}

.gvn-checkout-step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
}

.gvn-checkout-step-actions button {
    min-height: 44px;
    padding: 0 16px;
}

.gvn-step-hidden {
    display: none !important;
}

.gvn-checkout .gvn-step-error {
    color: #b91c1c;
    font-size: calc(14px * var(--gvn-font-scale, 1));
    margin: 8px 0 0;
}

.gvn-payment-pending {
    display: none !important;
}

@media (max-width: 480px) {
    .gvn-checkout-steps {
        align-items: flex-start;
        flex-direction: column;
    }

    .gvn-checkout-step-actions button {
        flex: 1;
    }
}

.gvn-fields-divider {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0.75rem 0 0.25rem;
    color: #64748b;
    font-size: calc(12px * var(--gvn-font-scale, 1));
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gvn-fields-divider::before,
.gvn-fields-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.gvn-field {
    min-width: 0;
    width: 100%;
}

.gvn-field--w100 { width: 100%; }
.gvn-field--w75  { width: 100%; }
.gvn-field--w50  { width: 100%; }
.gvn-field--w33  { width: 100%; }
.gvn-field--w25  { width: 100%; }

@media (min-width: 768px) {
    .gvn-field--w75  { width: calc(75% - 0.625rem); }
    .gvn-field--w50  { width: calc(50% - 0.625rem); }
    .gvn-field--w33  { width: calc(33.333% - 0.834rem); }
    .gvn-field--w25  { width: calc(25% - 0.938rem); }
}

.gvn-field__optional {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.8em;
    margin-left: 0.25rem;
}

.gvn-field--conditional-hidden {
    display: none !important;
}

.gvn-field__label {
    display: block;
    font-size: calc(14px * var(--gvn-font-scale, 1));
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
}

.gvn-field__required {
    color: #ef4444;
    margin-left: 0.15rem;
}

.gvn-field__label--checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.gvn-field__checkbox.gvn-field__input {
    width: auto;
    margin: 0;
    padding: 0;
    accent-color: var(--gvn-primary, #0066d4);
}

.gvn-field__input,
.gvn-field__select,
.gvn-field__textarea {
    width: 100%;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: calc(15px * var(--gvn-font-scale, 1));
    line-height: 1.5;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.gvn-field__input::placeholder,
.gvn-field__textarea::placeholder {
    color: #94a3b8;
}

.gvn-field__input:focus,
.gvn-field__select:focus,
.gvn-field__textarea:focus {
    border-color: var(--gvn-primary, #0066d4);
    box-shadow: 0 0 0 3px rgba(0, 102, 212, 0.15);
}

.gvn-field__textarea {
    resize: vertical;
    min-height: 85px;
}

.gvn-field__select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
}

/* ========================================
   Resumo do Pedido (Order Summary)
   ======================================== */

.gvn-order-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: calc(12px * var(--gvn-font-scale, 1));
    font-weight: 700;
    color: #94a3b8;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gvn-order-labels__prod {
    flex: 1;
}

.gvn-order-labels__sub {
    text-align: right;
}

.gvn-order-items {
    margin-bottom: 1rem;
    width: 100%;
}

.gvn-order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 1rem;
}

.gvn-order-item:last-child {
    border-bottom: none;
}

.gvn-order-item__name {
    font-size: calc(14px * var(--gvn-font-scale, 1));
    font-weight: 600;
    color: #1e293b;
    flex: 1;
    line-height: 1.4;
}

.gvn-order-item__qty {
    font-size: calc(12px * var(--gvn-font-scale, 1));
    color: #64748b;
    font-weight: 500;
    margin-top: 0.2rem;
}

.gvn-order-item__subtotal {
    font-size: calc(14px * var(--gvn-font-scale, 1));
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    text-align: right;
}

/* Totais */

.gvn-order-totals {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.75rem;
    width: 100%;
}

.gvn-order-totals__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: calc(14px * var(--gvn-font-scale, 1));
    padding: 0.35rem 0;
    color: #475569;
}

.gvn-order-totals__label {
    color: #64748b;
    font-weight: 500;
}

.gvn-order-totals__value {
    font-weight: 700;
    color: #1e293b;
}

.gvn-order-totals__row--discount .gvn-order-totals__value {
    color: #16a34a;
    font-weight: 700;
}

.gvn-order-totals__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
}

.gvn-order-totals__total-label {
    font-size: calc(18px * var(--gvn-font-scale, 1));
    font-weight: 800;
    color: #0f172a;
}

.gvn-order-totals__total-value {
    font-size: calc(20px * var(--gvn-font-scale, 1));
    font-weight: 900;
    color: var(--gvn-primary, #0066d4);
    text-align: right;
}

/* Selos de Confiança na Sidebar */
.gvn-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #e2e8f0;
    width: 100%;
}

.gvn-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: calc(13px * var(--gvn-font-scale, 1));
    font-weight: 600;
    color: #475569;
}

.gvn-trust-badge__icon {
    width: 1.125rem;
    height: 1.125rem;
    color: #10b981;
    flex-shrink: 0;
}

/* ========================================
   Cupom Sanfonado
   ======================================== */

.gvn-coupon {
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    width: 100%;
}

.gvn-coupon:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.gvn-coupon__trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.gvn-coupon__trigger-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gvn-coupon__icon {
    font-size: calc(18.4px * var(--gvn-font-scale, 1));
}

.gvn-coupon__text {
    font-size: calc(14px * var(--gvn-font-scale, 1));
    font-weight: 700;
    color: #334155;
}

.gvn-coupon__arrow {
    color: #94a3b8;
    font-size: calc(12px * var(--gvn-font-scale, 1));
    transition: transform 0.3s ease;
}

.gvn-coupon__arrow--open {
    transform: rotate(180deg);
}

.gvn-coupon__form {
    padding: 0 0.5rem 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.gvn-coupon__form-inner {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    width: 100%;
}

.gvn-coupon__form-inner .gvn-field__input {
    flex: 1;
}

.gvn-coupon__btn {
    background: var(--gvn-primary, #0066d4);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: calc(14px * var(--gvn-font-scale, 1));
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.gvn-coupon__btn:hover {
    opacity: 0.92;
}

.gvn-coupon__message {
    font-size: calc(13px * var(--gvn-font-scale, 1));
    margin-top: 0.5rem;
    padding: 0.25rem 0;
    font-weight: 600;
}

.gvn-coupon__message--success {
    color: #16a34a;
}

.gvn-coupon__message--error {
    color: #dc2626;
}

.gvn-coupon__applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    font-size: calc(13px * var(--gvn-font-scale, 1));
    color: #166534;
}

.gvn-coupon__remove {
    background: none;
    border: none;
    color: #dc2626;
    font-size: calc(12px * var(--gvn-font-scale, 1));
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

/* ========================================
   Gateways de Pagamento
   ======================================== */

.gvn-gateways {
    margin-bottom: 1.5rem;
    width: 100%;
}

.gvn-gateways__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
    width: 100%;
}

@media (min-width: 640px) {
    .gvn-gateways__list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

.gvn-gateway {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: all 0.2s ease;
    background: #ffffff;
    position: relative;
    width: 100%;
}

.gvn-gateway:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.gvn-gateway--active {
    border-color: var(--gvn-primary, #0066d4);
    background: #f0f7ff;
    box-shadow: 0 0 0 1px var(--gvn-primary, #0066d4);
}

.gvn-gateway__radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gvn-gateway__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gvn-gateway__icon--recommended {
    color: #3b82f6;
}

.gvn-gateway__icon--default {
    color: #94a3b8;
}

.gvn-gateway--active .gvn-gateway__icon--default {
    color: var(--gvn-primary, #0066d4);
}

.gvn-gateway__icon-svg {
    width: 1.875rem;
    height: 1.875rem;
}

.gvn-gateway__name-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.gvn-gateway__name {
    font-weight: 700;
    color: #1e293b;
    font-size: calc(14px * var(--gvn-font-scale, 1));
}

.gvn-gateway__badge {
    background: #f97316;
    color: #ffffff;
    font-size: calc(10px * var(--gvn-font-scale, 1));
    padding: 0.125rem 0.45rem;
    border-radius: 9999px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gvn-gateway__desc {
    font-size: calc(11.52px * var(--gvn-font-scale, 1));
    color: #64748b;
    margin: 0.15rem 0 0;
    font-weight: 500;
}

.gvn-gateways__content {
    margin-top: 1.25rem;
    width: 100%;
}

.gvn-gateway-fields {
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 0.625rem;
    border: 1px solid #e2e8f0;
    width: 100%;
}

/* Estado vazio de gateways */
.gvn-gateways__empty-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 0.75rem;
    color: #92400e;
    width: 100%;
}

.gvn-gateways__empty-icon {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    color: #f59e0b;
}

.gvn-gateways__empty {
    font-size: calc(14px * var(--gvn-font-scale, 1));
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

/* ========================================
   Termos e Privacidade
   ======================================== */

.gvn-terms-wrapper {
    margin: 1.25rem 0;
    font-size: calc(13px * var(--gvn-font-scale, 1));
    color: #475569;
    line-height: 1.5;
    width: 100%;
}

.gvn-terms-wrapper .woocommerce-privacy-policy-text {
    font-size: calc(12px * var(--gvn-font-scale, 1));
    color: #64748b;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.gvn-terms-wrapper .woocommerce-privacy-policy-text a,
.gvn-terms-wrapper .woocommerce-terms-and-conditions-link {
    color: var(--gvn-primary, #0066d4);
    text-decoration: underline;
    font-weight: 600;
}

.gvn-terms-wrapper .woocommerce-terms-and-conditions {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    font-size: calc(12px * var(--gvn-font-scale, 1));
    color: #475569;
    width: 100%;
}

.gvn-terms-row {
    margin: 0.75rem 0 0;
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.gvn-terms-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: calc(13px * var(--gvn-font-scale, 1));
    color: #334155;
    font-weight: 500;
    user-select: none;
}

.gvn-terms-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 0.25rem;
    border: 1px solid #cbd5e1;
    accent-color: var(--gvn-primary, #0066d4);
    cursor: pointer;
    flex-shrink: 0;
}

.gvn-privacy,
.gvn-privacy p,
.gvn-privacy a {
    font-size: var(--gvn-privacy-font-size, calc(11.52px * var(--gvn-font-scale, 1)));
}

.gvn-privacy {
    color: #64748b;
    text-align: center;
    line-height: 1.5;
    margin: 1.25rem 0;
    width: 100%;
}

.gvn-privacy__link {
    color: var(--gvn-primary, #0066d4);
    text-decoration: underline;
    font-weight: 600;
}

/* ========================================
   Order Bump
   ======================================== */

.gvn-order-bump {
    border: 2px dashed #f97316;
    background: #fff7ed;
    border-radius: 0.875rem;
    padding: 1.25rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.08);
    width: 100%;
}

.gvn-order-bump__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    width: 100%;
}

.gvn-order-bump__checkbox {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.gvn-order-bump__input {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    accent-color: #f97316;
}

.gvn-order-bump__content {
    flex: 1;
}

.gvn-order-bump__badge {
    color: #c2410c;
    font-weight: 800;
    font-size: calc(11.52px * var(--gvn-font-scale, 1));
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.gvn-order-bump__product {
    font-size: calc(16.8px * var(--gvn-font-scale, 1));
    font-weight: 800;
    color: #1e293b;
    margin: 0.25rem 0;
    line-height: 1.35;
}

.gvn-order-bump__price {
    color: #ea580c;
}

.gvn-order-bump__desc {
    font-size: calc(13px * var(--gvn-font-scale, 1));
    color: #475569;
    font-weight: 500;
    margin: 0.25rem 0 0.5rem;
    line-height: 1.4;
}

.gvn-order-bump__cta {
    color: #ea580c;
    font-weight: 800;
    font-size: calc(13px * var(--gvn-font-scale, 1));
    cursor: pointer;
    display: inline-block;
    padding-top: 0.25rem;
}

.gvn-order-bump__cta:hover {
    text-decoration: underline;
}

/* ========================================
   Submit Button
   ======================================== */

.gvn-submit {
    padding-top: 0.75rem;
    width: 100%;
}

.gvn-submit__btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gvn-button, #ff8a22), #ff9a3d);
    color: #ffffff;
    font-weight: 900;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-size: calc(20px * var(--gvn-font-scale, 1));
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px -2px rgba(255, 138, 34, 0.45);
    margin-top: 0.5rem;
    display: block;
    text-align: center;
}

.gvn-submit__btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 25px -2px rgba(255, 138, 34, 0.55);
    transform: translateY(-2px);
}

.gvn-submit__btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(255, 138, 34, 0.35);
}

.gvn-submit__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   WooCommerce Overrides & Notices
   ======================================== */

.gvn-checkout .woocommerce-error,
.gvn-checkout .woocommerce-message,
.gvn-checkout .woocommerce-info {
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 0.625rem;
    font-size: calc(14px * var(--gvn-font-scale, 1));
    font-weight: 500;
    line-height: 1.5;
    width: 100%;
}

.gvn-checkout .woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding-left: 3rem;
}

.gvn-checkout .woocommerce-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.gvn-checkout .woocommerce-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.gvn-checkout .woocommerce-NoticeGroup {
    margin-bottom: 1.25rem;
    width: 100%;
}

.gvn-checkout .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.75) !important;
}

/* ========================================
   Responsivo
   ======================================== */

@media (max-width: 767px) {
    .gvn-header {
        padding: 0.875rem 1rem;
        border-radius: 0 0 0.75rem 0.75rem;
        margin-bottom: 1.25rem;
    }

    .gvn-header__text {
        font-size: calc(13px * var(--gvn-font-scale, 1));
    }

    .gvn-header__badge {
        font-size: calc(10px * var(--gvn-font-scale, 1));
        padding: 0.35rem 0.65rem;
    }

    .gvn-title__heading {
        font-size: calc(24px * var(--gvn-font-scale, 1));
    }

    .gvn-title__dot {
        font-size: calc(24px * var(--gvn-font-scale, 1));
    }

    .gvn-card__body {
        padding: 1.125rem;
    }

    .gvn-submit__btn {
        font-size: calc(18px * var(--gvn-font-scale, 1));
        padding: 1.125rem;
    }

    .gvn-order-bump {
        padding: 1rem;
    }

    .gvn-order-bump__product {
        font-size: calc(15.2px * var(--gvn-font-scale, 1));
    }

    .gvn-gateways__list {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Loading / Spinner
   ======================================== */

.gvn-loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: gvn-spin 0.6s linear infinite;
}

@keyframes gvn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Thank You Page
   ======================================== */

.gvn-thankyou {
    padding-bottom: 3rem;
    width: 100%;
}

.gvn-thankyou__status {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    width: 100%;
}

.gvn-thankyou__status-icon {
    color: #16a34a;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.gvn-thankyou__status--failed .gvn-thankyou__status-icon {
    font-size: calc(56px * var(--gvn-font-scale, 1));
    color: #dc2626;
}

.gvn-thankyou__status--not-found .gvn-thankyou__status-icon {
    font-size: calc(56px * var(--gvn-font-scale, 1));
    color: #94a3b8;
}

.gvn-thankyou__status-title {
    font-size: calc(32px * var(--gvn-font-scale, 1));
    font-weight: 900;
    color: #0f172a;
    margin: 0.5rem 0 0.25rem;
    letter-spacing: -0.02em;
}

.gvn-thankyou__status-text {
    font-size: calc(15.2px * var(--gvn-font-scale, 1));
    color: #64748b;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

.gvn-thankyou__circle {
    animation: gvn-circle-draw 0.8s ease-out forwards;
}

.gvn-thankyou__check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: gvn-check-draw 0.4s ease-out 0.6s forwards;
}

@keyframes gvn-circle-draw {
    from { stroke-dashoffset: 188; }
    to   { stroke-dashoffset: 0; }
}

@keyframes gvn-check-draw {
    from { stroke-dashoffset: 48; }
    to   { stroke-dashoffset: 0; }
}

.gvn-thankyou__grid {
    max-width: 900px;
    margin: 0 auto 2rem;
    width: 100%;
}

.gvn-thankyou__info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
    width: 100%;
}

@media (min-width: 768px) {
    .gvn-thankyou__info-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gvn-thankyou__info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gvn-thankyou__info-label {
    display: block;
    font-size: calc(11.2px * var(--gvn-font-scale, 1));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.gvn-thankyou__info-value {
    display: block;
    font-size: calc(15.2px * var(--gvn-font-scale, 1));
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
}

.gvn-thankyou__info-value--highlight {
    color: var(--gvn-primary, #0066d4);
    font-size: calc(17.6px * var(--gvn-font-scale, 1));
    font-weight: 800;
}

.gvn-thankyou__status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: calc(12px * var(--gvn-font-scale, 1));
    font-weight: 700;
    text-transform: capitalize;
}

.gvn-thankyou__status-badge--processing,
.gvn-thankyou__status-badge--on-hold {
    background: #fef3c7;
    color: #92400e;
}

.gvn-thankyou__status-badge--completed {
    background: #d1fae5;
    color: #065f46;
}

.gvn-thankyou__status-badge--pending {
    background: #e0e7ff;
    color: #3730a3;
}

.gvn-thankyou__status-badge--failed,
.gvn-thankyou__status-badge--cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.gvn-thankyou__payment-instructions {
    max-width: 900px;
    margin: 0 auto 2rem;
    width: 100%;
    scroll-margin-top: 5rem;
}

.gvn-thankyou__payment-instructions img {
    max-width: 100%;
    height: auto;
}

.gvn-thankyou__payment-instructions textarea {
    width: 100%;
    min-height: 8rem;
    padding: 0.875rem 1rem;
    box-sizing: border-box;
    line-height: 1.5;
    resize: vertical;
}

.gvn-thankyou__customer {
    max-width: 900px;
    margin: 0 auto 2rem;
    width: 100%;
}

.gvn-thankyou__customer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .gvn-thankyou__customer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.gvn-thankyou__customer-heading {
    font-size: calc(12.8px * var(--gvn-font-scale, 1));
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 0 0 0.5rem;
}

.gvn-thankyou__customer-text {
    font-size: calc(14.4px * var(--gvn-font-scale, 1));
    color: #334155;
    line-height: 1.7;
    margin: 0;
}

.gvn-thankyou__custom-fields {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    width: 100%;
}

.gvn-thankyou__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.gvn-thankyou__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-size: calc(15.2px * var(--gvn-font-scale, 1));
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.gvn-thankyou__action-btn--primary {
    background: linear-gradient(to right, var(--gvn-button, #ff8a22), #ff9f4d);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 138, 34, 0.3);
}

.gvn-thankyou__action-btn--primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 138, 34, 0.4);
    color: #ffffff;
}

.gvn-thankyou__action-btn--secondary {
    background: #ffffff;
    color: #334155;
    border: 2px solid #e2e8f0;
}

.gvn-thankyou__action-btn--secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.gvn-thankyou__retry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-size: calc(15.2px * var(--gvn-font-scale, 1));
    font-weight: 700;
    text-decoration: none;
    background: #dc2626;
    color: #ffffff;
    margin-top: 1.5rem;
    transition: all 0.2s;
}

.gvn-thankyou__retry-btn:hover {
    background: #b91c1c;
    color: #ffffff;
}

@media (max-width: 767px) {
    .gvn-thankyou__status {
        padding: 2rem 1rem 1.5rem;
    }

    .gvn-thankyou__status-title {
        font-size: calc(24px * var(--gvn-font-scale, 1));
    }

    .gvn-thankyou__status-text {
        font-size: calc(13.6px * var(--gvn-font-scale, 1));
    }

    .gvn-thankyou__info-cards {
        grid-template-columns: 1fr 1fr;
    }

    .gvn-thankyou__info-card {
        padding: 0.75rem 1rem;
    }

    .gvn-thankyou__action-btn {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   ViaCEP - Feedback Visual
   ======================================== */

.gvn-field--loading .gvn-field__input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066d4' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10' stroke-dasharray='31.4' stroke-dashoffset='10'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.gvn-viacep-msg {
    font-size: calc(12.48px * var(--gvn-font-scale, 1));
    font-weight: 600;
    margin-top: 0.35rem;
    padding: 0.25rem 0;
    width: 100%;
}

.gvn-viacep-msg--success {
    color: #16a34a;
}

.gvn-viacep-msg--error {
    color: #dc2626;
}

.gvn-viacep-msg--warning {
    color: #d97706;
}

/* ========================================
   Campos travados via CEP (auto-fill lock)
   ======================================== */

.gvn-field--cep-locked .gvn-field__input {
    background-color: #f1f5f9;
    color: #64748b;
    cursor: default;
    border-color: #cbd5e1;
}

.gvn-field--cep-locked .gvn-field__input:focus {
    border-color: #cbd5e1;
    box-shadow: none;
}

.gvn-field__unlock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 0.25rem;
    color: #64748b;
    font-size: calc(12px * var(--gvn-font-scale, 1));
    width: 1.375rem;
    height: 1.375rem;
    margin-left: 0.375rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.15s ease;
    vertical-align: middle;
}

.gvn-field__unlock-btn:hover {
    color: var(--gvn-primary, #0066d4);
    border-color: var(--gvn-primary, #0066d4);
    background: #eff6ff;
}
