/* Bloom — Size guide trigger + modal
 * Brand: teal #2a7a8c, pink #e89a9a/#d97a7a, cream #faf6f2, charcoal #2c2c2c
 */

/* ---------- Trigger link ---------- */
.bloom-size-guide-trigger {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    color: #2a7a8c;
    text-decoration: underline;
    cursor: pointer;
    line-height: 1.4;
}

.bloom-size-guide-trigger:hover,
.bloom-size-guide-trigger:focus {
    color: #d97a7a;
    text-decoration: underline;
}

/* ---------- Modal container ---------- */
.bloom-size-guide-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bloom-size-guide-modal.is-open {
    display: flex;
    animation: bloomSgFade 200ms ease-out;
}

@keyframes bloomSgFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------- Backdrop ---------- */
.bloom-size-guide-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    transition: opacity 200ms ease-out;
}

/* ---------- Content box ---------- */
.bloom-size-guide-content {
    position: relative;
    background: #ffffff;
    color: #2c2c2c;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px 32px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.bloom-size-guide-content h2 {
    margin: 0 0 12px;
    color: #2c2c2c;
    font-size: 22px;
    line-height: 1.2;
}

.bloom-sg-intro {
    margin: 0 0 16px;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

.bloom-sg-note {
    margin: 16px 0 0;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
    font-style: italic;
}

/* ---------- Close button ---------- */
.bloom-size-guide-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 28px;
    line-height: 1;
    color: #2c2c2c;
    cursor: pointer;
    transition: background 150ms ease-out;
}

.bloom-size-guide-close:hover,
.bloom-size-guide-close:focus {
    background: #faf6f2;
    outline: none;
}

/* ---------- Table ---------- */
.bloom-size-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
}

.bloom-size-guide-table th,
.bloom-size-guide-table td {
    padding: 8px 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.bloom-size-guide-table thead th {
    background: #2a7a8c;
    color: #ffffff;
    font-weight: 600;
}

.bloom-size-guide-table tbody tr:nth-child(even) td {
    background: #faf6f2;
}

.bloom-size-guide-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
    .bloom-size-guide-modal {
        padding: 16px;
    }

    .bloom-size-guide-content {
        padding: 16px 20px;
        max-width: calc(100% - 0px);
    }

    .bloom-size-guide-content h2 {
        font-size: 18px;
    }

    .bloom-size-guide-table th,
    .bloom-size-guide-table td {
        padding: 6px 8px;
        font-size: 13px;
    }
}

/* ---------- Print ---------- */
@media print {
    .bloom-size-guide-modal {
        position: static !important;
        display: block !important;
        padding: 0;
    }
    .bloom-size-guide-backdrop,
    .bloom-size-guide-close {
        display: none !important;
    }
    .bloom-size-guide-content {
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }
}
