/**
 * FC Backorders & Restock Styles — Fabiola Carreño Estéticas
 */

/* 1. Availability Badges */
.fc-br-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.22rem 0.6rem;
    border-radius: 99px;
    line-height: 1.3;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

/* Card-specific badge placement & anti-overflow guarantees */
.fc-shop-card-figure .fc-br-badge,
.fc-shop-card-figure .fc-shop-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    max-width: calc(100% - 1.5rem) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(18, 27, 45, 0.08);
}

.fc-p6-card-body .fc-br-badge {
    max-width: 100%;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

/* In PDP single product summary, badge can display full text comfortably */
.single-product .fc-single-product-meta-bar .fc-br-badge {
    font-size: 0.72rem;
    padding: 0.28rem 0.75rem;
    white-space: normal;
    text-overflow: clip;
}

.fc-br-badge--instock {
    background: #EAF5EE;
    color: #1E5E3A;
    border: 1px solid #B7DEC5;
}

.fc-br-badge--lowstock {
    background: #FFF6EE;
    color: #A4582C;
    border: 1px solid #F3CEB6;
}

.fc-br-badge--backorder {
    background: #FBF6F0;
    color: #8C5935;
    border: 1px solid #DEC8B3;
}

.fc-br-badge--outofstock {
    background: #F4F2EE;
    color: #756E66;
    border: 1px solid #DFDAD2;
}

/* 2. Single Product Notice Box for Backorders */
.fc-br-backorder-notice-box {
    margin: 1.15rem 0 1.25rem;
    padding: 1rem 1.25rem;
    background: #FAF7F2;
    border: 1px solid rgba(203, 134, 101, 0.35);
    border-left: 3.5px solid #CB8665;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #4A443E;
}

.fc-br-backorder-notice-box p {
    margin: 0;
}

.fc-br-backorder-notice-title {
    font-weight: 700;
    color: #1D1D1B;
    margin-bottom: 0.3rem !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.fc-br-sub-button-note {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    color: #7A7268;
    text-align: center;
    letter-spacing: 0.02em;
}

/* 3. Waitlist Box ("Avísame cuando esté disponible") */
.fc-br-waitlist-wrap {
    margin: 1.5rem 0 1.25rem;
    padding: 1.25rem 1.35rem;
    background: #FFFFFF;
    border: 1px solid #EBE5DC;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.fc-br-waitlist-heading {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1D1D1B;
    margin: 0 0 0.45rem;
}

.fc-br-waitlist-desc {
    font-size: 0.83rem;
    color: #6A635B;
    margin: 0 0 0.85rem;
    line-height: 1.45;
}

.fc-br-waitlist-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.fc-br-waitlist-email {
    flex: 1 1 200px;
    padding: 0.65rem 0.95rem;
    font-size: 0.86rem;
    border: 1px solid #D6CEC4;
    border-radius: 6px;
    outline: none;
    background: #FCFBF9;
    color: #1D1D1B;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fc-br-waitlist-email:focus {
    border-color: #CB8665;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(203, 134, 101, 0.15);
}

.fc-br-waitlist-submit {
    padding: 0.65rem 1.15rem;
    background: #1D1D1B;
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid #1D1D1B;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fc-br-waitlist-submit:hover {
    background: #38332E;
    border-color: #38332E;
}

.fc-br-waitlist-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fc-br-waitlist-trust {
    width: 100%;
    margin: 0.65rem 0 0;
    font-size: 0.75rem;
    color: #8C847B;
    line-height: 1.4;
}

.fc-br-waitlist-feedback {
    width: 100%;
    margin-top: 0.65rem;
    font-size: 0.82rem;
    display: none;
    padding: 0.55rem 0.85rem;
    border-radius: 6px;
    line-height: 1.4;
}

.fc-br-waitlist-feedback.fc-success {
    display: block;
    background: #EAF5EE;
    color: #1E5E3A;
    border: 1px solid #B7DEC5;
}

.fc-br-waitlist-feedback.fc-error {
    display: block;
    background: #FDF2F2;
    color: #9B2C2C;
    border: 1px solid #F8B4B4;
}

.fc-br-waitlist-feedback.fc-info {
    display: block;
    background: #F4F8FA;
    color: #23566F;
    border: 1px solid #CFE2EB;
}

/* 4. Cart & Checkout Badges & Banners */
.fc-cart-backorder-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #8C5935;
    background: #FBF6F0;
    border: 1px solid #DEC8B3;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.fc-br-checkout-box {
    margin: 1.25rem 0 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #FAF7F2;
    border: 1.5px solid #DEC8B3;
    border-radius: 10px;
    font-size: 0.86rem;
    line-height: 1.55;
    color: #3A3530;
}

.fc-br-checkout-box h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #1D1D1B;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.fc-br-checkout-box ul {
    margin: 0.5rem 0 0.75rem 1.2rem;
    padding: 0;
}

.fc-br-checkout-box li {
    margin-bottom: 0.35rem;
}

.fc-br-legal-note {
    font-size: 0.78rem;
    color: #7A7268;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #EBE4D8;
    line-height: 1.45;
}
