/* ========================================================
   RNG FABRIC CARE POPUP (MODAL)
   Main colors: #928571, #111111, #ffffff
   ======================================================== */

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

dialog#wh-fabric-care.wh-fc::backdrop {
    background: rgba(17, 17, 17, 0.55);
    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(146, 133, 113, 0.25) !important;
    background: #fbfaf8 !important;
    color: #111111 !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: #111111 !important;
    transition: stroke 0.2s ease !important;
}

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

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

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

.wh-fc-emblem {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    color: #928571;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fbfaf8;
    border-radius: 50%;
    border: 1px solid rgba(146, 133, 113, 0.2);
}

.wh-fc-emblem svg {
    width: 28px;
    height: 28px;
}

.wh-fc-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #928571;
    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;
}

/* Care List */
.wh-fc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.wh-fc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: #fbfaf8;
    border-radius: 12px;
    border: 1px solid #f0ede8;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.wh-fc-item:hover {
    background: #ffffff;
    border-color: rgba(146, 133, 113, 0.4);
    transform: translateX(4px);
}

.wh-fc[dir="rtl"] .wh-fc-item:hover {
    transform: translateX(-4px);
}

.wh-fc-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(146, 133, 113, 0.25);
    color: #928571;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wh-fc-icon svg {
    width: 18px;
    height: 18px;
}

.wh-fc-text {
    font-size: 13.5px;
    color: #222222;
    line-height: 1.5;
    font-weight: 500;
}

/* 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: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #777777;
    margin: 0;
    line-height: 1.45;
}

.wh-fc-note svg {
    width: 15px;
    height: 15px;
    color: #928571;
    flex-shrink: 0;
    margin-top: 1px;
}

.wh-fc-ok {
    width: 100%;
    padding: 12px 20px;
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.wh-fc-ok:hover {
    background: #928571;
    box-shadow: 0 4px 14px rgba(146, 133, 113, 0.35);
}

@media (max-width: 480px) {
    .wh-fc-panel {
        padding: 28px 20px 20px;
    }
    .wh-fc-title {
        font-size: 22px;
    }
    .wh-fc-item {
        padding: 8px 10px;
        gap: 10px;
    }
    .wh-fc-text {
        font-size: 12.5px;
    }
}
