/* ------------------------------------------------------------------
   Professional reminder modals (water / network / instruction / powder)
   Shared styles for the .reminder-modal partials.
   Theme colours are supplied per modal via CSS variables:
     --rm-color, --rm-color-light, --rm-tint
   ------------------------------------------------------------------ */

.reminder-modal .modal-dialog {
        max-width: 460px;
        margin: 0.75rem auto;
    }
    .reminder-modal .modal-content {
        border: 0;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
        max-height: calc(100vh - 1.5rem);
        display: flex;
        flex-direction: column;
    }
    .reminder-modal .rm-accent {
        height: 5px;
        flex: 0 0 auto;
        background: linear-gradient(90deg, var(--rm-color), var(--rm-color-light));
    }
    .reminder-modal .rm-header {
        border-bottom: 0;
        padding: 1.5rem 1.75rem 0.75rem;
        flex: 0 0 auto;
    }
    .reminder-modal .rm-icon {
        width: 72px;
        height: 72px;
        margin: 0 auto 0.9rem;
        border-radius: 50%;
        background: var(--rm-tint);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .reminder-modal .rm-icon svg {
        width: 34px;
        height: 34px;
        display: block;
        overflow: visible;
    }
    .reminder-modal .rm-icon svg path {
        fill: var(--rm-color);
    }
    .reminder-modal .rm-icon svg line {
        stroke: var(--rm-color);
    }
    .reminder-modal .rm-eyebrow {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #8A8A8A;
        margin-bottom: 0.35rem;
    }
    .reminder-modal .rm-title {
        font-family: Arial, sans-serif;
        font-size: 1.15rem;
        font-weight: 800;
        line-height: 1.35;
        color: var(--rm-color);
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.01em;
    }
    .reminder-modal .rm-body {
        padding: 0.5rem 1.75rem 1.25rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1 1 auto;
        font-weight: 400;
    }
    .reminder-modal .rm-intro {
        font-size: 0.95rem;
        line-height: 1.65;
        color: #4A4A4A;
        margin-bottom: 1.25rem;
    }
    .reminder-modal .rm-card {
        background: var(--rm-tint);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 10px;
        padding: 1rem 1.25rem 0.6rem;
    }
    .reminder-modal .rm-card-title {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #8A8A8A;
        margin-bottom: 0.75rem;
    }
    .reminder-modal .rm-list {
        list-style: none;
        margin: 0;
        padding: 0;
        font-size: 0.9rem;
        line-height: 1.5;
        color: #4A4A4A;
    }
    .reminder-modal .rm-list li {
        position: relative;
        padding-left: 1.15rem;
        margin-bottom: 0.65rem;
        color: #4A4A4A;
    }
    .reminder-modal .rm-list li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.55em;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--rm-color);
    }
    .reminder-modal .rm-steps {
        list-style: none;
        margin: 0;
        padding: 0;
        font-size: 0.9rem;
        line-height: 1.5;
        color: #4A4A4A;
        counter-reset: rmstep;
    }
    .reminder-modal .rm-steps li {
        position: relative;
        padding-left: 2rem;
        margin-bottom: 0.75rem;
        color: #4A4A4A;
        counter-increment: rmstep;
    }
    .reminder-modal .rm-steps li::before {
        content: counter(rmstep);
        position: absolute;
        left: 0;
        top: 0.05rem;
        width: 1.35rem;
        height: 1.35rem;
        border-radius: 50%;
        background: var(--rm-color);
        color: #FFFFFF;
        font-size: 0.72rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .reminder-modal .rm-steps img {
        display: block;
        width: 60%;
        height: auto;
        margin: 0.6rem auto 0;
        border-radius: 8px;
    }
    .reminder-modal .rm-thanks {
        font-size: 0.82rem;
        line-height: 1.6;
        color: #9A9A9A;
        margin: 1rem 0 0;
    }
    .reminder-modal .rm-footer {
        flex: 0 0 auto;
        padding: 0 1.75rem 1.5rem;
        background: #FFFFFF;
    }
    .reminder-modal .rm-btn {
        width: 100%;
        background: var(--rm-color);
        border: 1px solid var(--rm-color);
        color: #FFFFFF;
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        border-radius: 8px;
        padding: 0.7rem 1rem;
    }
    .reminder-modal .rm-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    @media (max-width: 480px) {
        .reminder-modal .modal-dialog {
            max-width: none;
            margin: 0.5rem;
        }
        .reminder-modal .modal-content {
            max-height: calc(100vh - 1rem);
            border-radius: 12px;
        }
        .reminder-modal .rm-accent {
            height: 4px;
        }
        .reminder-modal .rm-header {
            padding: 0.9rem 1.1rem 0.4rem;
        }
        .reminder-modal .rm-icon {
            width: 52px;
            height: 52px;
            margin-bottom: 0.5rem;
        }
        .reminder-modal .rm-icon svg {
            width: 24px;
            height: 24px;
        }
        .reminder-modal .rm-eyebrow {
            font-size: 0.62rem;
            margin-bottom: 0.15rem;
        }
        .reminder-modal .rm-title {
            font-size: 0.95rem;
            line-height: 1.3;
        }
        .reminder-modal .rm-body {
            padding: 0.25rem 1.1rem 0.5rem;
        }
        .reminder-modal .rm-intro {
            font-size: 0.84rem;
            line-height: 1.45;
            margin-bottom: 0.7rem;
        }
        .reminder-modal .rm-card {
            padding: 0.7rem 0.85rem 0.2rem;
        }
        .reminder-modal .rm-card-title {
            font-size: 0.62rem;
            margin-bottom: 0.45rem;
        }
        .reminder-modal .rm-list {
            font-size: 0.8rem;
            line-height: 1.35;
        }
        .reminder-modal .rm-list li {
            padding-left: 1rem;
            margin-bottom: 0.35rem;
        }
        .reminder-modal .rm-steps {
            font-size: 0.8rem;
            line-height: 1.4;
        }
        .reminder-modal .rm-steps li {
            padding-left: 1.7rem;
            margin-bottom: 0.5rem;
        }
        .reminder-modal .rm-steps li::before {
            width: 1.15rem;
            height: 1.15rem;
            font-size: 0.65rem;
        }
        .reminder-modal .rm-steps img {
            width: 75%;
        }
        .reminder-modal .rm-thanks {
            font-size: 0.72rem;
            line-height: 1.4;
            margin-top: 0.55rem;
        }
        .reminder-modal .rm-footer {
            padding: 0 1.1rem 0.9rem;
        }
        .reminder-modal .rm-btn {
            font-size: 0.82rem;
            padding: 0.55rem 0.9rem;
        }
    }

/* ------------------------------------------------------------------
   Powder detergent reminder (kept separate: its own scoped styles)
   ------------------------------------------------------------------ */

#modal-powder-notice .modal-dialog {
        max-width: 460px;
        margin: 0.75rem auto;
    }
    #modal-powder-notice .modal-content {
        border: 0;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
        max-height: calc(100vh - 1.5rem);
        display: flex;
        flex-direction: column;
    }
    #modal-powder-notice .pdr-accent {
        height: 5px;
        flex: 0 0 auto;
        background: linear-gradient(90deg, #C70000, #FF5252);
    }
    #modal-powder-notice .pdr-header {
        border-bottom: 0;
        padding: 1.5rem 1.75rem 0.75rem;
        flex: 0 0 auto;
    }
    #modal-powder-notice .pdr-icon {
        width: 72px;
        height: 72px;
        margin: 0 auto 0.9rem;
        border-radius: 50%;
        background: #FDECEC;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #modal-powder-notice .pdr-icon svg {
        width: 34px;
        height: 34px;
        display: block;
        overflow: visible;
    }
    #modal-powder-notice .pdr-eyebrow {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #8A8A8A;
        margin-bottom: 0.35rem;
    }
    #modal-powder-notice .pdr-title {
        font-family: Arial, sans-serif;
        font-size: 1.15rem;
        font-weight: 800;
        line-height: 1.35;
        color: #C70000;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.01em;
    }
    #modal-powder-notice .pdr-body {
        padding: 0.5rem 1.75rem 1.25rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1 1 auto;
    }
    #modal-powder-notice .pdr-intro {
        font-size: 0.95rem;
        line-height: 1.65;
        color: #4A4A4A;
        margin-bottom: 1.25rem;
    }
    #modal-powder-notice .pdr-card {
        background: #FAFAFA;
        border: 1px solid #EEEEEE;
        border-radius: 10px;
        padding: 1rem 1.25rem 0.6rem;
    }
    #modal-powder-notice .pdr-card-title {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #8A8A8A;
        margin-bottom: 0.75rem;
    }
    /* "Provided free" card — included with the wash, so green rather than a warning.
       Declared standalone rather than only as a .pdr-card modifier so the fill,
       border, radius and padding cannot be lost to an inherited/overridden rule. */
    #modal-powder-notice .pdr-card-free {
        background: #E8F5E9;
        border: 1px solid #C8E6C9;
        border-radius: 10px;
        padding: 0.9rem 1.25rem;
        margin-bottom: 0.375rem;
    }
    #modal-powder-notice .pdr-card-free strong {
        color: #2E7D32;
        font-weight: 800;
    }
    #modal-powder-notice .pdr-free-note {
        font-size: 0.9rem;
        line-height: 1.5;
        color: #3B4A3B;
        margin: 0;
    }
    #modal-powder-notice .pdr-list {
        list-style: none;
        margin: 0;
        padding: 0;
        font-size: 0.9rem;
        line-height: 1.5;
        color: #4A4A4A;
    }
    #modal-powder-notice .pdr-list li {
        position: relative;
        padding-left: 1.15rem;
        margin-bottom: 0.65rem;
    }
    #modal-powder-notice .pdr-list li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.55em;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #C70000;
    }
    #modal-powder-notice .pdr-thanks {
        font-size: 0.82rem;
        line-height: 1.6;
        color: #9A9A9A;
        margin: 1rem 0 0;
    }
    #modal-powder-notice .pdr-footer {
        flex: 0 0 auto;
        padding: 0 1.75rem 1.5rem;
        background: #FFFFFF;
    }
    #modal-powder-notice .pdr-btn {
        width: 100%;
        background: #C70000;
        border: 1px solid #C70000;
        color: #FFFFFF;
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        border-radius: 8px;
        padding: 0.7rem 1rem;
    }
    #modal-powder-notice .pdr-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    @media (max-width: 480px) {
        #modal-powder-notice .modal-dialog {
            max-width: none;
            margin: 0.5rem;
        }
        #modal-powder-notice .modal-content {
            max-height: calc(100vh - 1rem);
            border-radius: 12px;
        }
        #modal-powder-notice .pdr-accent {
            height: 4px;
        }
        #modal-powder-notice .pdr-header {
            padding: 0.9rem 1.1rem 0.4rem;
        }
        #modal-powder-notice .pdr-icon {
            width: 52px;
            height: 52px;
            margin-bottom: 0.5rem;
        }
        #modal-powder-notice .pdr-icon svg {
            width: 24px;
            height: 24px;
        }
        #modal-powder-notice .pdr-eyebrow {
            font-size: 0.62rem;
            margin-bottom: 0.15rem;
        }
        #modal-powder-notice .pdr-title {
            font-size: 0.95rem;
            line-height: 1.3;
        }
        #modal-powder-notice .pdr-body {
            padding: 0.25rem 1.1rem 0.5rem;
        }
        #modal-powder-notice .pdr-intro {
            font-size: 0.84rem;
            line-height: 1.45;
            margin-bottom: 0.7rem;
        }
        #modal-powder-notice .pdr-card {
            padding: 0.7rem 0.85rem 0.2rem;
        }
        #modal-powder-notice .pdr-card-title {
            font-size: 0.62rem;
            margin-bottom: 0.45rem;
        }
        #modal-powder-notice .pdr-card-free {
            padding: 0.7rem 0.85rem;
            margin-bottom: 0.25rem;
        }
        #modal-powder-notice .pdr-free-note {
            font-size: 0.8rem;
            line-height: 1.4;
        }
        #modal-powder-notice .pdr-list {
            font-size: 0.8rem;
            line-height: 1.35;
        }
        #modal-powder-notice .pdr-list li {
            padding-left: 1rem;
            margin-bottom: 0.35rem;
        }
        #modal-powder-notice .pdr-thanks {
            font-size: 0.72rem;
            line-height: 1.4;
            margin-top: 0.55rem;
        }
        #modal-powder-notice .pdr-footer {
            padding: 0 1.1rem 0.9rem;
        }
        #modal-powder-notice .pdr-btn {
            font-size: 0.82rem;
            padding: 0.55rem 0.9rem;
        }
    }

/* ------------------------------------------------------------------
   Per-notice colour themes
   ------------------------------------------------------------------ */

.reminder-modal.theme-water {
    --rm-color: #1565C0;
    --rm-color-light: #42A5F5;
    --rm-tint: #E3F2FD;
}

.reminder-modal.theme-network {
    --rm-color: #E65100;
    --rm-color-light: #FF9800;
    --rm-tint: #FFF3E0;
}

/* Dryer wet clothes reminder (amber = heat) */
.reminder-modal.theme-dryer {
    --rm-color: #B45309;
    --rm-color-light: #F59E0B;
    --rm-tint: #FEF3C7;
}

.reminder-modal.theme-instruction {
    --rm-color: #5E35B1;
    --rm-color-light: #9575CD;
    --rm-tint: #EDE7F6;
}

/* Powder detergent emphasis text */
#modal-powder-notice .pdr-strong {
    color: #C70000;
    font-weight: 800;
}

/* Maintenance notice theme */
.reminder-modal.theme-maintenance {
    --rm-color: #455A64;
    --rm-color-light: #78909C;
    --rm-tint: #ECEFF1;
}

/* Machine out of service notice theme (dark red = attention) */
.reminder-modal.theme-inoperative {
    --rm-color: #B71C1C;
    --rm-color-light: #EF5350;
    --rm-tint: #FFEBEE;
}
