/* =====================================================
   WP OTL ELEMENTOR — Calculo de Frete Widget
   ===================================================== */

.wp-otl-cf-wrapper {
    width: 100%;
    box-sizing: border-box;
}

/* -------------------------------------------------
   Title
   ------------------------------------------------- */

.wp-otl-cf-title {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* -------------------------------------------------
   Form row
   ------------------------------------------------- */

.wp-otl-cf-form {
    display: flex;
    width: 100%;
}

.wp-otl-cf-cep {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
    border: 1px solid #cccccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    background-color: #ffffff;
    color: #333333;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.wp-otl-cf-cep:focus {
    border-color: #888888;
}

.wp-otl-cf-cep::placeholder {
    color: #999999;
}

.wp-otl-cf-btn {
    height: 44px;
    padding: 0 18px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
    box-sizing: border-box;
}

.wp-otl-cf-btn:hover {
    background-color: #333333;
}

.wp-otl-cf-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* -------------------------------------------------
   Address
   ------------------------------------------------- */

.wp-otl-cf-address {
    margin-top: 6px;
    min-height: 18px;
    font-size: 12px;
}

.wp-otl-cf-address-text {
    color: #666666;
}

/* -------------------------------------------------
   Loading / Error states
   ------------------------------------------------- */

.wp-otl-cf-loading {
    display: inline-block;
    font-size: 13px;
    color: #888888;
    font-style: italic;
}

.wp-otl-cf-error {
    display: inline-block;
    font-size: 13px;
    color: #c62828;
}

/* -------------------------------------------------
   Rates list
   ------------------------------------------------- */

.wp-otl-cf-rates {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.wp-otl-cf-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f8f8;
    border-radius: 6px;
    padding: 10px 14px;
    box-sizing: border-box;
}

.wp-otl-cf-rate:nth-child(even) {
    background-color: #f0f0f0;
}

.wp-otl-cf-rate.is-error {
    background-color: #fff5f5;
}

.wp-otl-cf-rate-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wp-otl-cf-rate-name {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.wp-otl-cf-rate-deadline {
    color: #666666;
    font-size: 12px;
    line-height: 1.3;
}

.wp-otl-cf-rate-err {
    color: #c62828;
}

.wp-otl-cf-rate-price {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 12px;
}

.wp-otl-cf-rate-price.is-free {
    color: #2e7d32;
}
