﻿/* Livraria da Travessa | bloco de frete do detalhe do produto
   Escopo isolado: .tw-frete-produto. Nao altera estilos globais. */
.tw-frete-host { min-width: 0; width: 100%; }
.tw-frete-produto {
    box-sizing: border-box;
    width: 100%;
    max-width: 390px;
    margin: 12px 0 22px;
    color: #222;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
}

    .tw-frete-produto *,
    .tw-frete-produto *::before,
    .tw-frete-produto *::after {
        box-sizing: border-box;
    }

.tw-frete-produto__cartao {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 13px 14px;
    background-color: #fbfbfb;
}

.tw-frete-produto__cabecalho {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tw-frete-produto__icone {
    display: inline-flex;
    flex: none;
    width: 23px;
    height: 23px;
    margin-top: 1px;
    color: #222;
}

    .tw-frete-produto__icone svg {
        width: 23px;
        height: 23px;
        display: block;
    }

.tw-frete-produto__titulo {
    display: block;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.tw-frete-produto__subtitulo {
    display: block;
    margin: 3px 0 0;
    color: #555;
    font-size: 13px;
}

.tw-frete-produto__formulario {
    margin-top: 11px;
}

.tw-frete-produto__rotulo {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    color: #555;
}

.tw-frete-produto__linha-form {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    gap: 8px;
}

.tw-frete-produto__input {
    flex: 0 1 12rem;
    min-width: 0;
    width: auto;
    max-width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    color: #1d1d1d;
    font: inherit;
    font-size: 15px;
}

    .tw-frete-produto__input:focus-visible,
    .tw-frete-produto__botao:focus-visible,
    .tw-frete-produto__alterar:focus-visible {
        outline: 2px solid #d50000;
        outline-offset: 2px;
    }

.tw-frete-produto__botao {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
    min-height: 40px;
    border: 1px solid #151515;
    border-radius: 4px;
    padding: 8px 15px;
    color: #fff;
    background: #151515;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

    .tw-frete-produto__botao:hover {
        background: #333;
        border-color: #333;
    }

.tw-frete-produto__erro {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: #b00020;
}

.tw-frete-produto__resultado {
    flex: 1;
    min-width: 0;
}

.tw-frete-produto__frete {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 7px;
}

.tw-frete-produto__prazo { font-size: 14px; font-weight: 600; line-height: 1.5; }
.tw-frete-produto__resultado .tw-frete-produto__frete { margin-top: 5px; font-size: 14px; line-height: 1.5; }
.tw-frete-produto__valor { font-size: 14px; font-weight: 600; color: #222; }
.tw-frete-produto__valor--gratis { color: #256b3b; }
.tw-frete-produto__cep { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; color: #555; font-size: 13px; line-height: 1.5; }
.tw-frete-produto__alterar { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 4px; text-decoration: underline; color: #8b0000; }
.tw-frete-produto__homologacao { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: #704600; }
.tw-frete-produto [hidden] { display: none; }
/* Host sem .cep para evitar larguras, alturas e floats legados. */
.tw-frete-host .tw-frete-produto__input { float: none; width: auto; height: auto; min-height: 44px; padding: 8px 10px; font-size: 16px; line-height: 1.4; text-align: left; border-color: #aaa; }
.tw-frete-host .tw-frete-produto__botao { float: none; width: auto; height: auto; min-height: 44px; padding: 8px 15px; font-size: 14px; line-height: 1.4; }
.tw-frete-host .tw-frete-produto__valor { display: inline; margin: 0; float: none; }
.tw-produto.singleProduct .tw-frete-produto { margin: 0; }
.tw-produto.singleProduct .tw-frete-produto__cartao { border: 0; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; border-radius: 0; padding: 14px 0; background: #fff; }

.tw-frete-produto__cabecalho > div { min-width: 0; overflow-wrap: anywhere; }

.tw-frete-produto__recomendacao { display: block; margin-bottom: 8px; color: #444; font-size: 13px; line-height: 1.5; }

.tw-frete-produto__observacao { display: block; margin-top: 4px; color: #555; font-size: 12px; line-height: 1.5; }
