/* Estilos Gerais */
.rte-calculadora-wrapper,
.rte-frete-produto,
.rte-cart-calculator,
.rte-checkout-calculator {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.rte-calculadora-wrapper h3,
.rte-frete-produto h4,
.rte-cart-calculator h3,
.rte-checkout-calculator h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

/* Formulários */
.rte-form-group {
    margin-bottom: 15px;
}

.rte-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.rte-cep-input {
    width: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.rte-cep-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.rte-calc-button,
.rte-calcular-frete-produto,
#rte-cart-calcular,
#rte-checkout-calcular,
#rte-recalcular {
    padding: 10px 20px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.rte-calc-button:hover,
.rte-calcular-frete-produto:hover,
#rte-cart-calcular:hover,
#rte-checkout-calcular:hover,
#rte-recalcular:hover {
    background: #005a87;
}

/* Resultados */
.rte-calc-resultado,
#rte-cart-resultado,
#rte-checkout-resultado {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.rte-resultado-frete p,
.rte-resultado-produto p {
    margin: 10px 0;
    line-height: 1.5;
}

.rte-regional {
    color: #007cba;
    font-weight: 600;
}

.rte-valor {
    font-size: 1.2em;
    color: #46b450;
}

.rte-prazo {
    color: #ff9800;
}

/* Total com frete */
.rte-total {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

/* Ações */
.rte-acoes {
    margin-top: 15px;
    text-align: right;
}

.rte-acoes .button {
    display: inline-block;
    padding: 10px 20px;
    background: #46b450;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.rte-acoes .button:hover {
    background: #3d8c43;
}

/* Tabela de Fretes */
.rte-tabela-fretes {
    margin: 30px 0;
    overflow-x: auto;
}

.rte-tabela {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #ddd;
}

.rte-tabela th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.rte-tabela td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.rte-tabela tr:hover {
    background: #f9f9f9;
}

.rte-observacoes {
    margin-top: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-left: 3px solid #007cba;
    font-size: 0.9em;
    color: #666;
}

/* Info no carrinho */
.rte-frete-info th {
    width: 50%;
    font-weight: 600;
    color: #007cba;
}

.rte-frete-info td {
    color: #333;
}

/* Loading */
.rte-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.rte-loading:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: rte-spin 1s linear infinite;
}

/* Error */
.rte-error {
    padding: 10px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
}

/* Animação */
@keyframes rte-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsivo */
@media (max-width: 768px) {
    .rte-cart-form,
    .rte-checkout-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .rte-cep-input {
        width: 100%;
    }
    
    .rte-calc-button,
    .rte-calcular-frete-produto {
        width: 100%;
    }
    
    .rte-tabela {
        font-size: 14px;
    }
    
    .rte-tabela th,
    .rte-tabela td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .rte-calculadora-wrapper,
    .rte-frete-produto,
    .rte-cart-calculator,
    .rte-checkout-calculator {
        padding: 15px;
    }
    
    .rte-tabela {
        display: block;
        overflow-x: auto;
    }
}