/* ========================================================
   F&B · MUKHAWAR FABRIC CARE POPUP (#fabric-care)
   STRICTLY SCOPED TO dialog#wh-fabric-care.wh-fc ONLY
   No external styles / Zero impact on product page elements
   ======================================================== */

dialog#wh-fabric-care.wh-fc {
    --wh-fc-main: #aa6268;
    --wh-fc-main-hover: #945157;
    --wh-fc-light: #fae9e2;
    --wh-fc-light-hover: #f5ddd4;
    --wh-fc-text: #221d1e;
    --wh-fc-muted: #6b5a5c;
    --wh-fc-border: rgba(170, 98, 104, 0.2);

    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(34, 29, 30, 0.35), 0 0 0 1px rgba(170, 98, 104, 0.2);
    overflow: hidden;
    margin: auto;
    position: fixed;
    inset: 0;
    z-index: 9999999;
}

dialog#wh-fabric-care.wh-fc::backdrop {
    background: rgba(34, 29, 30, 0.65);
    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);
    }
}

dialog#wh-fabric-care.wh-fc .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;
}

dialog#wh-fabric-care.wh-fc .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(170, 98, 104, 0.25) !important;
    background: #ffffff !important;
    color: #aa6268 !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;
}

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

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

dialog#wh-fabric-care.wh-fc .wh-fc-close:hover {
    background: #aa6268 !important;
    color: #ffffff !important;
    border-color: #aa6268 !important;
    transform: rotate(90deg) !important;
}

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

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

dialog#wh-fabric-care.wh-fc .wh-fc-emblem {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    color: #fae9e2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #aa6268;
    border-radius: 50%;
    border: 2px solid #fae9e2;
    box-shadow: 0 4px 16px rgba(170, 98, 104, 0.28);
}

dialog#wh-fabric-care.wh-fc .wh-fc-emblem svg {
    width: 32px;
    height: 32px;
    stroke: #fae9e2;
}

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

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

dialog#wh-fabric-care.wh-fc .wh-fc-title {
    font-size: 26px;
    font-weight: 800;
    color: #221d1e;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

dialog#wh-fabric-care.wh-fc .wh-fc-intro {
    font-size: 14px;
    color: #554447;
    margin: 0;
    line-height: 1.6;
}

/* Fabric Care Step List */
dialog#wh-fabric-care.wh-fc .wh-fc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

dialog#wh-fabric-care.wh-fc .wh-fc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #f2e9e4;
    box-shadow: 0 2px 6px rgba(170, 98, 104, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

dialog#wh-fabric-care.wh-fc .wh-fc-item:hover {
    background: #fffcfb;
    border-color: #aa6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(170, 98, 104, 0.14);
}

dialog#wh-fabric-care.wh-fc .wh-fc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #aa6268;
    border: 1px solid rgba(250, 233, 226, 0.45);
    color: #fae9e2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(170, 98, 104, 0.2);
}

dialog#wh-fabric-care.wh-fc .wh-fc-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fae9e2;
}

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

dialog#wh-fabric-care.wh-fc .wh-fc-step-num {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #aa6268;
    background: #fae9e2;
    display: inline-block;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 6px;
}

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

dialog#wh-fabric-care.wh-fc .wh-fc-text {
    font-size: 14px;
    color: #2b1f21;
    line-height: 1.5;
    font-weight: 500;
}

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

dialog#wh-fabric-care.wh-fc .wh-fc-note {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #3b2225;
    background: #fae9e2;
    border: 1px solid rgba(170, 98, 104, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0;
    line-height: 1.45;
    font-weight: 600;
}

dialog#wh-fabric-care.wh-fc .wh-fc-note svg {
    width: 20px;
    height: 20px;
    color: #aa6268;
    stroke: #aa6268;
    flex-shrink: 0;
}

dialog#wh-fabric-care.wh-fc .wh-fc-ok {
    width: 100%;
    padding: 14px 20px;
    background: #aa6268;
    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(170, 98, 104, 0.28);
}

dialog#wh-fabric-care.wh-fc .wh-fc-ok:hover {
    background: #945157;
    box-shadow: 0 6px 18px rgba(170, 98, 104, 0.38);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    dialog#wh-fabric-care.wh-fc .wh-fc-panel {
        padding: 26px 18px 20px;
    }
    dialog#wh-fabric-care.wh-fc .wh-fc-title {
        font-size: 22px;
    }
    dialog#wh-fabric-care.wh-fc .wh-fc-item {
        padding: 12px;
        gap: 12px;
    }
    dialog#wh-fabric-care.wh-fc .wh-fc-icon {
        width: 40px;
        height: 40px;
    }
    dialog#wh-fabric-care.wh-fc .wh-fc-icon svg {
        width: 22px;
        height: 22px;
    }
    dialog#wh-fabric-care.wh-fc .wh-fc-text {
        font-size: 13px;
    }
}
