/**
 * Estilos da calculadora de frete no produto.
 * Comentário de implantação: CSS escopado para evitar conflito com o tema Aurum em 03/06/2026. Reforço de espaçamento superior dentro do form.cart em 03/06/2026.
 */
.vcscp-calculator {
    width: 100%;
    margin: 34px 0 22px !important;
    padding: 0;
    color: #555;
    clear: both;
    display: block;
    box-sizing: border-box;
}



/*
 * Ajuste específico para quando a calculadora é inserida dentro do form.cart do WooCommerce/Aurum.
 * Comentário de implantação: força quebra de linha e respiro visual abaixo do CTA em 03/06/2026.
 */
.single-product div.product form.cart .vcscp-calculator,
.single-product .summary form.cart .vcscp-calculator,
.woocommerce div.product form.cart .vcscp-calculator {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    display: block !important;
    margin-top: 34px !important;
    padding-top: 18px !important;
}

.single-product div.product form.cart .vcscp-title,
.single-product .summary form.cart .vcscp-title,
.woocommerce div.product form.cart .vcscp-title {
    display: block !important;
    width: 100% !important;
    margin-top: 0 !important;
}

.vcscp-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
    color: #555;
}

.vcscp-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vcscp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 42px;
    color: #e71b6c;
}

.vcscp-postcode {
    height: 42px !important;
    min-width: 160px;
    max-width: 210px;
    padding: 0 14px !important;
    border: 1px solid #e5e5e5 !important;
    background: #f7f7f7 !important;
    color: #333 !important;
    font-size: 15px !important;
    box-shadow: none !important;
    outline: none !important;
}

.vcscp-postcode:focus {
    border-color: #d8d8d8 !important;
    background: #ffffff !important;
}

.vcscp-button {
    position: relative;
    height: 42px;
    min-width: 130px;
    padding: 0 22px;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    cursor: pointer;
    transition: opacity .2s ease;
}

.vcscp-button:hover,
.vcscp-button:focus {
    opacity: .9;
}

.vcscp-button.is-loading {
    cursor: wait;
    opacity: .75;
}

.vcscp-button__loading {
    display: none;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    vertical-align: middle;
    animation: vcscpSpin .75s linear infinite;
}

.vcscp-button.is-loading .vcscp-button__loading {
    display: inline-block;
}

@keyframes vcscpSpin {
    to { transform: rotate(360deg); }
}

.vcscp-cep-link {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
}

.vcscp-cep-link:hover {
    color: #e71b6c;
    text-decoration: underline;
}

.vcscp-response {
    margin-top: 16px;
}

.vcscp-alert {
    padding: 12px 14px;
    background: #f7f7f7;
    border-left: 3px solid #e71b6c;
    font-size: 14px;
    line-height: 1.45;
}

.vcscp-alert--error {
    border-left-color: #b81c23;
    color: #7a161a;
    background: #fff5f5;
}

.vcscp-results {
    padding: 16px;
    background: #f7f7f7;
}

.vcscp-results__title {
    font-size: 14px;
    margin-bottom: 12px;
    color: #555;
}

.vcscp-rates {
    display: grid;
    gap: 8px;
}

.vcscp-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #eeeeee;
}

.vcscp-rate--pickup {
    border-left: 3px solid #e71b6c;
}

.vcscp-rate__main {
    min-width: 0;
}

.vcscp-rate__name {
    font-size: 14px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    line-height: 1.35;
}

.vcscp-rate__desc {
    margin-top: 3px;
    font-size: 13px;
    color: #777;
    line-height: 1.35;
}

.vcscp-rate__price {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: #444;
    text-align: right;
}

.vcscp-note {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
    line-height: 1.45;
}

.vcscp-note p {
    margin: 0;
}


@media (max-width: 640px) {
    .vcscp-calculator {
        margin-top: 32px !important;
    }

    .single-product div.product form.cart .vcscp-calculator,
    .single-product .summary form.cart .vcscp-calculator,
    .woocommerce div.product form.cart .vcscp-calculator {
        margin-top: 32px !important;
        padding-top: 45px !important;
    }
    .vcscp-form {
        display: grid;
        grid-template-columns: 40px 1fr;
        gap: 10px;
    }

    .vcscp-postcode {
        max-width: none;
        width: 100%;
    }

    .vcscp-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .vcscp-cep-link {
        grid-column: 1 / -1;
        text-align: center;
    }

    .vcscp-rate {
        align-items: flex-start;
    }
}
