/* ========================================================
   BiG Lounge · BREWING INSTRUCTIONS POPUP (#fabric-care)
   Main button color: #66644b
   Icons color: #fbe3cb
   Card & popup colors: #ffffff, #111111, #ede8e1
   ======================================================== */

dialog#wh-fabric-care.wh-fc {
    border: none;
    padding: 0;
    background: transparent;
    max-width: 580px;
    width: calc(100vw - 32px);
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(102, 100, 75, 0.2);
    overflow: hidden;
    margin: auto;
    position: fixed;
    inset: 0;
    z-index: 9999999;
}

dialog#wh-fabric-care.wh-fc::backdrop {
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: whFcBackdropIn 0.3s ease;
}

dialog#wh-fabric-care.wh-fc[open] {
    display: flex;
    animation: whFcPanelIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes whFcPanelIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.wh-fc-panel {
    background: #ffffff;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 36px 32px 28px;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.wh-fc-close {
    all: unset !important;
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(102, 100, 75, 0.2) !important;
    background: #ffffff !important;
    color: #66644b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    z-index: 100 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.wh-fc[dir="rtl"] .wh-fc-close,
.wh-rtl .wh-fc-close {
    right: auto !important;
    left: 18px !important;
}

.wh-fc-close svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    stroke: #66644b !important;
    transition: stroke 0.2s ease !important;
}

.wh-fc-close:hover {
    background: #66644b !important;
    color: #ffffff !important;
    border-color: #66644b !important;
    transform: rotate(90deg) !important;
}

.wh-fc-close:hover svg {
    stroke: #ffffff !important;
}

/* Head */
.wh-fc-head {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0ede8;
}

.wh-fc-emblem {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    color: #fbe3cb;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #66644b;
    border-radius: 50%;
    border: 2px solid #fbe3cb;
    box-shadow: 0 4px 16px rgba(102, 100, 75, 0.25);
}

.wh-fc-emblem svg {
    width: 30px;
    height: 30px;
    stroke: #fbe3cb;
}

.wh-fc-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #66644b;
    margin-bottom: 6px;
}

.wh-fc[dir="rtl"] .wh-fc-eyebrow {
    letter-spacing: 0.5px;
}

.wh-fc-title {
    font-size: 26px;
    font-weight: 800;
    color: #111111;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.wh-fc-intro {
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

/* Brewing Step List */
.wh-fc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wh-fc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #ede8e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wh-fc-item:hover {
    background: #fdfcf9;
    border-color: #66644b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 100, 75, 0.12);
}

.wh-fc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #66644b;
    border: 1px solid rgba(251, 227, 203, 0.35);
    color: #fbe3cb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102, 100, 75, 0.15);
}

.wh-fc-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fbe3cb;
}

.wh-fc-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.wh-fc-step-num {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #66644b;
    background: rgba(102, 100, 75, 0.08);
    display: inline-block;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 6px;
}

.wh-fc[dir="rtl"] .wh-fc-step-num {
    letter-spacing: 0;
}

.wh-fc-text {
    font-size: 14.5px;
    color: #1b1b1b;
    line-height: 1.45;
    font-weight: 600;
}

/* Foot */
.wh-fc-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0ede8;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wh-fc-note {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: #555555;
    background: #faf8f5;
    border: 1px solid rgba(102, 100, 75, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 0;
    line-height: 1.45;
}

.wh-fc-note svg {
    width: 18px;
    height: 18px;
    color: #66644b;
    stroke: #66644b;
    flex-shrink: 0;
}

.wh-fc-ok {
    width: 100%;
    padding: 14px 20px;
    background: #66644b;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 4px 14px rgba(102, 100, 75, 0.25);
}

.wh-fc-ok:hover {
    background: #55533d;
    box-shadow: 0 6px 18px rgba(102, 100, 75, 0.35);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .wh-fc-panel {
        padding: 26px 18px 20px;
    }
    .wh-fc-title {
        font-size: 22px;
    }
    .wh-fc-item {
        padding: 10px 12px;
        gap: 12px;
    }
    .wh-fc-icon {
        width: 38px;
        height: 38px;
    }
    .wh-fc-icon svg {
        width: 20px;
        height: 20px;
    }
    .wh-fc-text {
        font-size: 13.5px;
    }
}
