/**
 * Brazilian Checkout Fields - Frontend CSS
 *
 * @package BrazilianCheckout
 */

/* === Toggle PF/PJ === */
.person-type-field {
    transition: opacity 0.2s ease, max-height 0.2s ease;
}

/* === Order Review Toggle === */
#bcf-order-review-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    font-size: 16px;
    line-height: 1;
    width: 100%;
    background: #fff;
    text-align: left;
    margin-bottom: 0;
    border-bottom: 1px dashed #bfbfbf;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}

#bcf-order-review-toggle .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

#bcf-order-review-toggle .dashicons-cart {
    margin-right: 0.5em;
}

#order_review_heading {
    display: none;
}

/* === Order Notes Toggle === */
.bcf-order-notes-toggle {
    margin-bottom: 1em;
}

.bcf-order-notes-toggle label {
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.bcf-order-notes-hidden {
    display: none;
}

.woocommerce-additional-fields > h3 {
    display: none;
}

/* === CEP Feedback (inside field) === */
.bcf-cep-overlay {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    pointer-events: none;
    z-index: 9;
    background: #fff;
    padding: 0 5px;
    line-height: 1;
}

.bcf-cep-overlay--loading {
    color: #007cba;
    animation: bcf-pulse 1.5s infinite;
}

.bcf-cep-overlay--error {
    color: #b81c23;
}

@keyframes bcf-pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.4; }
    100% { opacity: 1; }
}

/* === Minha Conta - Editar Endereços === */
.woocommerce-address-fields__field-wrapper {
    margin-bottom: 20px;
}

/* === Trust Badges === */
.bcf-trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 1.5em 0;
}

.bcf-trust-badge-img {
    max-height: 50px;
    width: auto;
    height: auto;
}

.bcf-trust-badges a {
    display: inline-flex;
    text-decoration: none;
    border: none;
    box-shadow: none;
}
