/*
|--------------------------------------------------------------------------
| DIGIFLEXO ERP PRO
| Viewport Web
| Arquivo: viewports/web/css/freight-box.css
| Versão: 6.2.2.freight.5
|--------------------------------------------------------------------------
| Controla SOMENTE:
| - Calcular frete
| - CEP
| - Endereço
| - Opções de frete
|--------------------------------------------------------------------------
*/

.dfx-erp-freight-box {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-sizing: border-box;
}

.dfx-erp-freight-title {
    display: block;
    margin: 0 0 12px;
    color: #d60000;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.dfx-erp-cep-label {
    margin: 0 0 7px;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.dfx-erp-cep-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    margin: 0 0 10px;
}

.dfx-erp-freight-box .dfx-erp-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
    outline: none;
}

.dfx-erp-cep-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    color: #0d6efd;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.dfx-erp-address-title,
.dfx-erp-freight-options-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 7px;
    color: #0d6efd;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.dfx-erp-address-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    width: 100%;
    margin: 0 0 8px;
}

.dfx-erp-address-field label {
    display: block;
    margin: 0 0 5px;
    color: #111827;
    font-size: 12px;
    font-weight: 600;
}

.dfx-erp-address-uf {
    max-width: 80px;
}

.dfx-erp-truck-icon,
.dfx-erp-freight-placeholder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}

.dfx-erp-truck-icon {
    width: 16px;
    height: 16px;
}

.dfx-erp-truck-icon svg,
.dfx-erp-freight-placeholder-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.dfx-erp-freight-options-title {
    margin: 10px 0 7px;
}

.dfx-erp-freight-options {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .28);
    border: 1px dashed #b8cbe6;
    border-radius: 8px;
    box-sizing: border-box;
}

.dfx-erp-freight-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dfx-erp-freight-placeholder-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.dfx-erp-freight-placeholder-text {
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
}

@media (max-width: 768px) {

    .dfx-erp-cep-row,
    .dfx-erp-address-row {
        grid-template-columns: 1fr;
    }

    .dfx-erp-address-uf {
        max-width: none;
    }

    .dfx-erp-cep-link {
        width: 100%;
    }
}
