/* Smart Frete - Styles */

.smart-frete-wrapper {
    --sf-primary: #2271b1;
    --sf-box-bg: #ffffff;
    --sf-text: #333333;
    margin: 20px 0;
    padding: 0;
}

.smart-frete-box {
    background: var(--sf-box-bg, #fff);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.smart-frete-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.smart-frete-header-icon {
    font-size: 24px;
    line-height: 1;
}

.smart-frete-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.smart-frete-form {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.smart-frete-input-group {
    flex: 1;
    position: relative;
}

.smart-frete-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.smart-frete-input:focus {
    outline: none;
    border-color: var(--sf-primary, #2271b1);
    box-shadow: 0 0 0 1px var(--sf-primary, #2271b1);
}

.smart-frete-input::placeholder {
    color: #999;
}

/* Field styles */
.smart-frete-field-underline .smart-frete-input {
    border: none !important;
    border-bottom: 2px solid #ddd !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: transparent !important;
}

.smart-frete-field-underline .smart-frete-input:focus {
    border-bottom-color: var(--sf-primary, #2271b1) !important;
    box-shadow: none !important;
}

.smart-frete-field-filled .smart-frete-input {
    border: none !important;
    border-radius: 8px !important;
    background: #f5f5f5 !important;
}

.smart-frete-field-filled .smart-frete-input:focus {
    background: #eeeeee !important;
    box-shadow: 0 0 0 2px var(--sf-primary, #2271b1) !important;
}

.smart-frete-field-outlined .smart-frete-input {
    border: 2px solid var(--sf-primary, #2271b1) !important;
    border-radius: 8px !important;
    background: transparent !important;
}

.smart-frete-field-outlined .smart-frete-input:focus {
    border-color: var(--sf-primary, #2271b1) !important;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15) !important;
}

.smart-frete-btn {
    padding: var(--sf-btn-padding, 12px 24px) !important;
    background: var(--sf-btn-bg, var(--sf-primary, #2271b1)) !important;
    color: var(--sf-btn-text, #fff) !important;
    border-radius: var(--sf-btn-radius, 6px) !important;
    border: var(--sf-btn-border-w, 0) solid var(--sf-btn-border, transparent) !important;
    font-size: var(--sf-btn-font, 14px);
    font-weight: 500;
    cursor: pointer;
    transition: filter 0.2s, background 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.smart-frete-btn:hover {
    background: var(--sf-btn-bg, var(--sf-primary, #2271b1));
    filter: brightness(0.9);
}

.smart-frete-btn:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
}

.smart-frete-btn-loading {
    display: none;
    gap: 8px;
    align-items: center;
}

.smart-frete-btn-text {
    display: inline;
}

.smart-frete-btn-loading .smart-frete-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: smart-frete-spin 0.8s linear infinite;
}

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

.smart-frete-loading.is-loading .smart-frete-btn-loading {
    display: flex;
}

.smart-frete-loading.is-loading .smart-frete-btn-text {
    display: none;
}

/* Resultados */

.smart-frete-results {
    display: none;
    margin-top: 20px;
    padding-top: 15px;
}

.smart-frete-results.is-visible {
    display: block;
    animation: smart-frete-fadeIn 0.3s ease;
}

@keyframes smart-frete-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.smart-frete-destination {
    margin-bottom: 15px;
    padding: 8px 4px;
}

.smart-frete-destination-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #a4aab4;
    margin: 0 0 8px;
}

.smart-frete-destination-label::before,
.smart-frete-destination-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eef0f2;
}

.smart-frete-destination-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    color: #555;
}

.smart-frete-destination-icon {
    flex-shrink: 0;
}

.smart-frete-destination-text {
    flex: 1 1 auto;
    min-width: 0;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    line-height: 1.4;
}

.smart-frete-destination-text strong {
    font-weight: 700;
}

.smart-frete-maps-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--sf-primary, #2271b1);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid color-mix(in srgb, var(--sf-primary, #2271b1) 30%, transparent);
    background: #ffffff;
    border-radius: 999px;
    padding: 3px 10px;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-destination-icon svg {
    display: block;
}

/* Total com frete */
.smart-frete-total-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 16px;
    margin-bottom: 15px;
    background: var(--sf-primary, #2271b1);
    border-radius: 8px;
    color: #fff;
}

.smart-frete-total-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.smart-frete-total-price {
    font-size: 22px;
    font-weight: 700;
}

.smart-frete-total-detail {
    font-size: 11px;
    opacity: 0.7;
}

.smart-frete-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-total-box {
    background: var(--sf-primary, #2271b1);
    border-radius: 12px;
    padding: 16px;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-methods {
    gap: 6px;
}

.smart-frete-method {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: border-color 0.2s, background 0.2s;
}

.smart-frete-method:hover {
    border-color: #2271b1;
    background: #f0f7ff;
}

.smart-frete-method-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    overflow: hidden;
}

.smart-frete-method-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--sf-text, #333) !important;
    display: block;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.smart-frete-receive-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin: 6px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.smart-frete-method-time {
    font-size: 12px;
    color: #777;
}

.smart-frete-method-cost {
    font-weight: 700;
    font-size: 16px;
    color: var(--sf-primary, #2271b1);
    white-space: nowrap;
}

.smart-frete-method-cost.is-free {
    color: #2e7d32;
}

.smart-frete-method-total {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-top: 2px;
    text-align: right;
}

.smart-frete-method.method-best {
    border-left: 3px solid #2e7d32;
    background: #f0faf0;
}

.smart-frete-method.method-best .smart-frete-badge--best {
    background: #2e7d32;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
}

.smart-frete-method.method-fast {
    border-left: 3px solid var(--sf-primary, #2271b1);
    background: #f0f7ff;
}

.smart-frete-method.method-express {
    border-left: 4px solid #e65100 !important;
    background: #fff3e6 !important;
    border: 1px solid #f5d5b8 !important;
    border-left: 4px solid #e65100 !important;
}

.smart-frete-badge--express {
    background: #e65100;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    display: inline-block;
    margin-bottom: 4px;
}

.smart-frete-notice {
    margin: 12px 0 0;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    background: #f5f5f5;
    border-radius: 4px;
    border-left: 3px solid #ddd;
}

/* Erro */

.smart-frete-error {
    display: none;
    margin-top: 15px;
    padding: 12px 15px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 13px;
}

.smart-frete-error.is-visible {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: smart-frete-fadeIn 0.3s ease;
}

.smart-frete-error-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Responsivo */

@media (max-width: 480px) {
    .smart-frete-form {
        flex-direction: column;
    }

    .smart-frete-btn {
        width: 100%;
        justify-content: center;
    }

    .smart-frete-method {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .smart-frete-method-cost {
        align-self: flex-end;
    }

    .smart-frete-results {
        padding: 10px;
    }

    .smart-frete-destination {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

@media (max-width: 520px) {
    .smart-frete-wrapper.smart-frete-style-premium .smart-frete-box {
        padding: 6px;
        border-radius: 10px;
    }

    .smart-frete-wrapper.smart-frete-style-premium .smart-frete-form {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: center !important;
        gap: 10px;
        padding: 14px;
    }

    .smart-frete-wrapper.smart-frete-style-premium .smart-frete-title {
        text-align: center;
        line-height: 1.3;
        flex: none !important;
        white-space: normal;
        font-size: 13px;
    }

    .smart-frete-wrapper.smart-frete-style-premium .smart-frete-input-group {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0;
        max-width: none;
    }

    .smart-frete-wrapper.smart-frete-style-premium .smart-frete-input {
        width: 100% !important;
        height: 44px;
        font-size: 16px;
        text-align: center;
        border-radius: 8px;
    }

    .smart-frete-wrapper.smart-frete-style-premium .smart-frete-btn {
        width: 100% !important;
        flex: 1 1 100% !important;
        height: 44px;
        justify-content: center;
    }

    .smart-frete-wrapper.smart-frete-style-premium .smart-frete-results {
        padding: 8px 4px 6px;
        margin-top: 8px;
    }

    .smart-frete-wrapper.smart-frete-style-premium .smart-frete-destination {
        flex-wrap: wrap;
        padding: 8px 10px;
        font-size: 12px;
    }

.smart-frete-maps-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--sf-primary, #2271b1);
    text-decoration: none;
    white-space: nowrap;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-maps-link {
        margin-left: 0;
        margin-top: 4px;
        width: 100%;
        justify-content: center;
    }

    .smart-frete-wrapper.smart-frete-style-premium .smart-frete-method {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 12px;
    }

    .smart-frete-wrapper.smart-frete-style-premium .smart-frete-method-right {
        width: 100%;
        justify-content: space-between;
        flex-direction: row;
    }

    .smart-frete-wrapper.smart-frete-style-premium .smart-frete-method-cost {
        font-size: 14px;
    }

    .smart-frete-wrapper.smart-frete-style-premium .smart-frete-receive-label {
        margin: 10px 0 6px;
        font-size: 10px;
    }

    .smart-frete-wrapper.smart-frete-style-premium .smart-frete-notice {
        font-size: 11px;
        padding: 8px 10px;
    }
}

@media (max-width: 360px) {
    .smart-frete-wrapper.smart-frete-style-premium .smart-frete-title {
        font-size: 12px;
    }

    .smart-frete-wrapper.smart-frete-style-premium .smart-frete-method {
        padding: 8px 10px;
    }
}

/* Tema Woodmart / Flatsome compat */

.woodmart-shipping-calculator-wrapper .smart-frete-box,
.woocommerce-shipping-calculator .smart-frete-box {
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Elementor compat */

.elementor-widget-woocommerce-product-add-to-cart .smart-frete-wrapper {
    margin-top: 15px;
}

/* ==========================================================
   Melhorias: validação, limpar, skeleton, destaques
   ========================================================== */

/* Estado do CEP: válido / inválido */
.smart-frete-input-group .smart-frete-input {
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.smart-frete-input-group.smart-frete-valid .smart-frete-input {
    border-color: #2e7d32;
    box-shadow: 0 0 0 1px #2e7d32;
}

.smart-frete-input-group.smart-frete-invalid .smart-frete-input {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px #dc2626;
}

/* Botão limpar (x) */
.smart-frete-input-group {
    position: relative;
}

.smart-frete-clear,
.smart-frete-wrapper .smart-frete-clear,
.smart-frete-wrapper.smart-frete-style-premium .smart-frete-clear {
    display: none !important;
}

.smart-frete-input-group.smart-frete-valid .smart-frete-clear,
.smart-frete-input-group.smart-frete-invalid .smart-frete-clear {
    right: 10px;
}

/* Skeleton de carregamento */
.smart-frete-results.is-loading .smart-frete-skeleton-line {
    height: 46px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #eef0f2 25%, #f7f8f9 50%, #eef0f2 75%);
    background-size: 200% 100%;
    animation: smart-frete-shimmer 1.2s infinite;
}

@keyframes smart-frete-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Badges: melhor preço / mais rápido */
.smart-frete-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 3px;
    width: fit-content;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-badge--best {
    background: var(--sf-badge-best-bg, #e6f4e6);
    color: var(--sf-badge-best-color, #2e7d32);
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-badge--fast {
    background: var(--sf-badge-fast-bg, #e6f0fa);
    color: var(--sf-badge-fast-color, #2271b1);
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-badge--express {
    background: var(--sf-badge-express-bg, #fff0e6);
    color: var(--sf-badge-express-color, #e65100);
}

/* Prazo em destaque (pílula) ao lado do preço */
.smart-frete-method-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: none;
}

.smart-frete-method-time-pill {
    font-size: 11px;
    font-weight: 600;
    color: #475467;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 3px 10px;
}

@media (max-width: 480px) {
    .smart-frete-method-right {
        align-items: flex-start;
        flex-direction: row;
        align-self: flex-end;
    }
}

/* Premium: prazo em destaque + destaque do melhor preço */
.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method-time {
    display: none;
}

.smart-frete-wrapper:not(.smart-frete-style-premium) .smart-frete-method-time-pill {
    display: none;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method-time-pill {
    background: rgba(34, 113, 177, 0.09);
    color: var(--sf-primary, #2271b1);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method.method-best,
.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method.method-fast {
    background: #f0f7ff;
    border-color: #d0e3f7;
    border-left-color: var(--sf-primary, #2271b1);
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method.method-express {
    background: #fff8f0;
    border-color: #f5d5b8;
    border-left-color: #e65100;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method.method-best .smart-frete-method-cost {
    color: #2e7d32;
}

/* ==========================================================
   Modelo Premium (Casa Bahia / Shopee / SaaS)
   ========================================================== */

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-box {
    background: #fff;
    border: 1px solid #eef0f2;
    box-shadow: 0 4px 20px rgba(16, 24, 40, 0.06);
    border-radius: 14px;
    padding: 10px;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-clear {
    display: none !important;
}

/* --- Topo: uma única linha — título esquerda, campo + botão direita --- */

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 0;
    padding: 12px 16px;
    background: var(--sf-top-bg, #e8f1fa);
    border-radius: 12px;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-title {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    flex: 1 1 auto;
    line-height: 42px;
    text-align: left;
    color: var(--sf-text, #333);
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-input-group {
    flex: 0 0 auto;
    width: 150px;
    min-width: 0;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-input {
    width: 100%;
    height: 42px;
    text-align: center;
    border: 2px solid #b0c4de;
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-input::placeholder {
    letter-spacing: 0;
    font-weight: 400;
    font-size: 13px;
    color: #a0aab4;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-input:focus {
    background: #fff;
    border-color: var(--sf-primary, #2271b1);
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.12);
}

/* Premium field styles */
.smart-frete-wrapper.smart-frete-style-premium .smart-frete-field-underline .smart-frete-input {
    border: none !important;
    border-bottom: 2px solid #b0c4de !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-field-underline .smart-frete-input:focus {
    border-bottom-color: var(--sf-primary, #2271b1) !important;
    box-shadow: none !important;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-field-filled .smart-frete-input {
    border: none !important;
    border-radius: 8px !important;
    background: #f0f4f8 !important;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-field-filled .smart-frete-input:focus {
    background: #e8ecf0 !important;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.12) !important;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-field-outlined .smart-frete-input {
    border: 3px solid var(--sf-primary, #2271b1) !important;
    border-radius: 8px !important;
    background: transparent !important;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-field-outlined .smart-frete-input:focus {
    border-color: var(--sf-primary, #2271b1) !important;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.15) !important;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-btn {
    justify-content: center;
    white-space: nowrap;
    flex: 0 0 auto;
    height: 42px;
    box-sizing: border-box;
    align-self: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.18);
    padding: 0 20px;
    font-size: 14px;
    font-weight: 700;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-btn:hover {
    filter: brightness(0.97);
    box-shadow: 0 4px 14px rgba(34, 113, 177, 0.24);
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-btn:disabled {
    box-shadow: none;
}

/* --- Área de resultados premium (box branco; topo e endereço azuis) --- */

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-results {
    margin-top: 10px;
    padding: 12px 10px 2px;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-destination {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 6px 2px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sf-text, #333);
    margin-bottom: 0;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-destination-label {
    color: #a4aab4;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-destination-label::before,
.smart-frete-wrapper.smart-frete-style-premium .smart-frete-destination-label::after {
    background: #eef0f2;
}

.smart-frete-destination strong {
    font-weight: 700;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-destination strong {
    font-weight: 700;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-maps-link {
    margin-left: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--sf-maps-color, #2271b1);
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--sf-maps-color, #2271b1) 30%, transparent);
    background: #ffffff;
    border-radius: 999px;
    padding: 3px 10px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-maps-link:hover {
    background: var(--sf-maps-color, #2271b1);
    color: var(--sf-maps-bg, #ffffff);
    border-color: var(--sf-maps-color, #2271b1);
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-receive-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #98a2b3;
    margin: 12px 0 8px;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-receive-label::before,
.smart-frete-wrapper.smart-frete-style-premium .smart-frete-receive-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eef0f2;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 9px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border-left: 3px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, padding-left 0.25s ease;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method:last-child {
    border-bottom: 1px solid #eef0f2;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method:hover {
    background: #f0f7ff;
    border-color: #d0e3f7;
    border-left-color: var(--sf-primary, #2271b1);
    padding-left: 14px;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-badge {
    flex-shrink: 0;
    margin-bottom: 3px;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method-name {
    font-size: 13px;
    font-weight: 700;
    display: block;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method-time {
    display: block;
    font-size: 12.5px;
    color: #667085;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method-time-pill {
    display: none;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method-cost {
    font-size: 15px;
    font-weight: 800;
    color: var(--sf-primary, #2271b1);
    padding: 0;
    background: transparent;
    border-radius: 0;
    white-space: nowrap;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method-cost.is-free {
    color: #2e7d32;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method-total {
    font-size: 11px;
    font-weight: 600;
    color: #667085;
    text-align: right;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method.method-best {
    border-left: 4px solid #2e7d32;
    background: #f0faf0;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method.method-best .smart-frete-badge--best {
    background: #2e7d32;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method.method-fast {
    border-left: 4px solid var(--sf-primary, #2271b1);
    background: #f0f7ff;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method.method-express {
    border-left: 4px solid #e65100;
    background: #fff8f0;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method.method-express .smart-frete-badge--express {
    background: #e65100;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-method.method-express .smart-frete-method-cost {
    color: #e65100;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-notice {
    background: #f8f9fa;
    border-left: 3px solid var(--sf-primary, #2271b1);
    border-radius: 8px;
    color: #667085;
    font-size: 12px;
    padding: 10px 14px;
    margin: 14px 0 0;
}

.smart-frete-wrapper.smart-frete-style-premium .smart-frete-error {
    border-radius: 12px;
}
