/* ==========================================================================
   VPD Travel — Cart page (override visual + design system)
   ========================================================================== */

#termosaceitos {
    display: none;
}

.termos {
    max-width: 100%;
    width: 100% !important;
    text-align: left;
}

.termos ul {
    font-size: 13px;
}

p#enviadisabledtext {
    text-align: center;
    font-size: 12px;
}

h6#h7 {
    font-size: 16px;
    text-transform: uppercase;
}

/* --- Background da página: força branco, remove a imagem de castelo --- */
body.woocommerce-cart,
body.woocommerce-page.woocommerce-cart {
    background: #fff !important;
    background-image: none !important;
}

body.woocommerce-cart .cart-pagewrap,
.cart-pagewrap {
    background: #f7f7f7 !important;
    background-image: none !important;
    background-color: #f7f7f7 !important;
}

.woocommerce-cart .content-wrap {
    border-top: none !important;
    background: #f7f7f7;
    box-shadow: none;
    margin-top: 0;
    padding: 0 15px;
}

.vpd-cart-page {
    position: relative;
    background: #fff;
    min-height: auto;
    padding: 0;
}

.vpd-cart-loading {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 20;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
}

.vpd-cart-page.is-updating-cart .vpd-cart-loading {
    display: flex;
}

.vpd-cart-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    color: var(--vpd-text-muted, #666);
    font-family: 'Montserrat', 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.woocommerce .cart-collaterals, .woocommerce-page .cart-collaterals {
    width: 100%;
    background: #f7f7f7;
}

/* ==========================================================================
   Tabela de itens (cart.php)
   ========================================================================== */

.vpd-cart-page .vpd-card {
    border: 1px solid var(--vpd-border-light);
    border-radius: var(--vpd-radius-md);
}

.vpd-cart-page .vpd-card-body {
    padding: 20px 20px 24px;
}

.vpd-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.vpd-cart-table thead th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vpd-text-muted);
    border-bottom: 1px solid var(--vpd-border-light);
    padding: 18px 16px;
    vertical-align: middle;
}

.vpd-cart-table thead th.product-name {
    text-align: left;
}

.vpd-cart-table thead th.product-price,
.vpd-cart-table thead th.product-quantity,
.vpd-cart-table thead th.product-subtotal,
.vpd-cart-table thead th.product-remove {
    text-align: center;
}

.vpd-cart-table tbody td {
    padding: 22px 16px;
    border-bottom: 1px solid var(--vpd-border-light);
    vertical-align: middle;
    color: var(--vpd-text-body);
    font-size: 14px;
}

.vpd-cart-table tbody tr:last-child td {
    border-bottom: none;
}

.vpd-cart-table tbody tr:hover td {
    background: transparent;
}

.vpd-cart-table .product-name {
    width: 40%;
    text-align: left;
}

.vpd-cart-table .product-price,
.vpd-cart-table .product-quantity,
.vpd-cart-table .product-subtotal,
.vpd-cart-table .product-remove {
    text-align: center;
    white-space: nowrap;
}

.vpd-cart-table .product-remove {
    width: 70px;
}

.vpd-mobile-field-label {
    display: none;
}

/* Título do item (menor que antes) */
.vpd-cart-item-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--vpd-primary);
    line-height: 1.35;
    margin-bottom: 4px;
}

.vpd-cart-table .product-name a,
.vpd-cart-table .product-name a:hover {
    color: inherit;
    text-decoration: none;
}

/* Meta (data / horário) */
.vpd-cart-item-meta {
    margin: 4px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.vpd-cart-item-meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--vpd-text-muted);
    margin-right: 12px;
}

.vpd-cart-item-meta li i {
    color: var(--vpd-primary);
    font-size: 12px;
}

.vpd-cart-item-meta li::after {
    content: none !important;
}

/* Ícone de lixeira (remove) */
.vpd-cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--vpd-text-muted);
    font-size: 16px;
    line-height: 1;
    border-radius: var(--vpd-radius-sm);
    transition: color 0.2s, background 0.2s;
}

.vpd-cart-remove-text {
    display: none;
}

.vpd-cart-remove:hover,
.vpd-cart-remove:focus {
    color: var(--vpd-error);
    background: var(--vpd-error-bg);
    text-decoration: none;
}

/* Controle de quantidade — / + */
.vpd-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.vpd-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--vpd-primary);
    background: #fff;
    color: var(--vpd-primary);
    border-radius: var(--vpd-radius-sm);
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.vpd-qty-btn:hover {
    background: var(--vpd-primary);
    color: #fff;
}

.vpd-qty-input {
    width: 44px;
    height: 28px;
    border: 1px solid var(--vpd-border);
    border-radius: var(--vpd-radius-sm);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--vpd-text);
    background: #fff;
    -moz-appearance: textfield;
    padding: 0 4px;
}

.vpd-qty-input::-webkit-outer-spin-button,
.vpd-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.vpd-qty-fixed .vpd-qty-value {
    display: inline-block;
    min-width: 44px;
    height: 28px;
    line-height: 28px;
    border: 1px solid var(--vpd-border);
    border-radius: var(--vpd-radius-sm);
    text-align: center;
    font-weight: 600;
    color: var(--vpd-text);
    background: var(--vpd-bg-subtle);
}

/* Ações do carrinho (continuar comprando / atualizar) */
.vpd-cart-actions {
    margin-top: 8px;
    padding: 18px 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.vpd-cart-btn-back,
.vpd-cart-btn-update {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-weight: 600;
    border-radius: var(--vpd-radius-md);
}

.vpd-cart-btn-back i,
.vpd-cart-btn-update i {
    font-size: 13px;
}


/* ==========================================================================
   Resumo do pedido (cart-totals.php)
   ========================================================================== */

.vpd-cart-summary-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    margin-top: 24px;
}

.vpd-cart-summary-layout .termos > div {
    margin-bottom: 10px;
}

.vpd-cart-summary-layout .vpd-choice {
    margin-top: 10px;
}

/* Resumo de pagamento — visual legado (faixas coloridas) no card novo */
.vpd-cart-payment-info {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.vpd-cart-from-price {
    text-align: left;
    margin-bottom: 12px;
}

.vpd-cart-from-price-original {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: var(--vpd-text-muted, #999);
    text-decoration: line-through;
}

.vpd-cart-from-price-main {
    margin: 0;
    line-height: 1.2;
}

.vpd-cart-from-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2c3e6b;
    margin-bottom: 4px;
}

.vpd-cart-from-value {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: #2c3e6b;
}

.vpd-cart-taxas-note {
    margin-bottom: 14px;
}

.vpd-cart-taxas-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    color: var(--vpd-text-muted, #777);
}

.vpd-cart-taxas-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vpd-cart-taxas-row {
    width: 100%;
}

.vpd-cart-taxas-box-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 10px 14px;
    background: #e5eef2;
    border: 1px solid #dae0e3;
    border-radius: 8px;
}

.vpd-cart-taxas-icon {
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #7f8c9a;
    font-size: 18px;
    line-height: 1;
    background: #fff;
    border-radius: 50%;
    border: solid 1px #c7cdd0;
    padding: 5px;
}

.vpd-cart-taxas-icon img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.85;
}


.vpd-cart-taxas-titles {
    flex: 1;
    min-width: 0;
}

.vpd-cart-taxas-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
}

.vpd-cart-taxas-subtitle {
    display: block;
    margin-top: -1px;
    font-size: 10px;
    color: #6d6d6d;
    line-height: 1.2;
    text-transform: uppercase;
}

.vpd-cart-taxas-price {
    flex-shrink: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.vpd-cart-taxas-boleto .vpd-cart-taxas-title,
.vpd-cart-taxas-boleto .vpd-cart-taxas-price {
    color: #2c3e6b;
    /* color: #36a16b; */
}

.vpd-cart-taxas-cartao1 .vpd-cart-taxas-title,
.vpd-cart-taxas-cartao1 .vpd-cart-taxas-price {
    color: #2c3e6b;
    /* color: #3498db; */
}

.vpd-cart-taxas-cartao6 .vpd-cart-taxas-title,
.vpd-cart-taxas-cartao6 .vpd-cart-taxas-price {
    color: #2c3e6b;
    /* color: #3863ad; */
}

.vpd-cart-taxas-cartao12 .vpd-cart-taxas-title,
.vpd-cart-taxas-cartao12 .vpd-cart-taxas-price {
    color: #2c3e6b;
    /* color: #5c388d; */
}

/* Botão prosseguir / disabled */
#termosnaoaceitos .vpd-btn {
    cursor: not-allowed;
    opacity: 0.6;
}

#termosaceitos .checkout-button {
    width: 100%;
    border: none;
    border-radius: var(--vpd-radius-md);
    background: var(--vpd-primary);
    color: #fff;
    font-size: var(--vpd-font-size-lg);
    font-weight: 700;
    padding: 15px 24px;
}

#termosaceitos .checkout-button:hover {
    background: var(--vpd-primary-dark);
}


/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 900px) {
    .vpd-cart-summary-layout {
        grid-template-columns: 1fr;
    }

    .vpd-cart-table thead {
        display: none;
    }

    .vpd-cart-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        text-align: left;
        border-bottom: none;
        padding: 8px 16px;
    }

    .vpd-cart-table tbody tr {
        display: block;
        border: 1px solid var(--vpd-border-light);
        border-radius: 10px;
        margin-bottom: 12px;
        padding: 8px 0;
        background: #fff;
    }

    .vpd-cart-table .product-name {
        width: auto;
        display: block;
    }

    .vpd-mobile-field-label {
        display: inline-block;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--vpd-text-muted);
        white-space: nowrap;
    }

    .vpd-cart-item-name {
        font-size: 14px;
        margin-top: 4px;
    }

    .vpd-cart-table .product-price,
    .vpd-cart-table .product-quantity,
    .vpd-cart-table .product-subtotal {
        font-size: 14px;
    }

    .vpd-cart-table .product-remove {
        justify-content: flex-end;
        width: auto;
        min-width: 0;
        overflow: visible;
    }

    .vpd-cart-table td.product-remove .vpd-mobile-field-label {
        margin-right: auto;
    }

    .vpd-cart-remove {
        width: auto;
        height: 30px;
        padding: 0 10px;
        border: 1px solid var(--vpd-border);
        border-radius: 8px;
        gap: 8px;
        margin-left: auto;
        white-space: nowrap;
    }

    .vpd-cart-remove-text {
        display: inline;
        font-size: 12px;
        font-weight: 600;
        color: inherit;
    }

    .vpd-qty-control {
        justify-content: flex-end;
    }

    .vpd-cart-from-value {
        font-size: 26px;
    }

    .vpd-cart-taxas-title {
        font-size: 14px;
    }

    .vpd-cart-taxas-price {
        font-size: 15px;
    }

    .vpd-cart-taxas-box-inner {
        padding: 8px 10px;
        gap: 10px;
    }
}

/* Botão "Prosseguir para o checkout" gerado pelo WooCommerce */
#termosaceitos a.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: 'Montserrat', 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    padding: 15px 32px;
    border-radius: 10px;
    border: 2px solid #1abc9c;
    background: #1abc9c;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

#termosaceitos a.btn:hover {
    background: #16a085;
    border-color: #16a085;
    color: #fff;
    text-decoration: none;
}

/* Aviso de conversão BRL — página do carrinho */
.vpd-currency-disclaimer--cart {
    padding: 10px 12px;
    font-family: 'Montserrat', 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    background: #fefff6;
    border: 1px solid #ffdb4d;
    border-radius: 10px;
    margin: 10px 0 0 0;
}

.vpd-currency-disclaimer--cart[hidden] {
    display: none !important;
}

button.vpd-btn.vpd-btn-outline.vpd-cart-btn-update {
    background: #eeee;
    color: #666;
    border-color: #ddd;
}