/* === Cleaning popup (หน้า checkout) === */
.wt-cleaning-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}
.wt-cleaning-popup.is-visible {
    display: block;
}
.wt-cleaning-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 60, 100, 0.55);
}
.wt-cleaning-popup__dialog {
    position: relative;
    margin: 5vh auto;
    max-width: 560px;
    width: calc(100% - 32px);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 32px 32px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.wt-cleaning-popup__close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #1F3C64;
    cursor: pointer;
}
.wt-cleaning-popup__title {
    color: #1F3C64;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
    margin: 0 0 16px;
    /* เว้นที่ขวาให้ปุ่มปิด × ไม่ทับ title */
    padding-right: 28px;
}
.wt-cleaning-popup__title span {
    color: #0fa968;
}
.wt-cleaning-popup__text {
    color: #1F3C64;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 12px;
}
/* แถบสีน้ำเงินเข้มพาดหลังการ์ดสินค้า (ตาม mockup) */
.wt-cleaning-popup__products {
    position: relative;
    display: flex;
    gap: 16px;
    margin: 24px 0 20px;
    padding: 18px 0;
}
.wt-cleaning-popup__products::before {
    content: "";
    position: absolute;
    left: -32px;
    right: -32px;
    top: 50%;
    transform: translateY(-50%);
    height: 78%;
    background: #1F3C64;
    z-index: 0;
}
.wt-cleaning-popup__product {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    padding: 14px 14px 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.wt-cleaning-popup__product-image {
    display: block;
    text-align: center;
    margin-bottom: 12px;
}
.wt-cleaning-popup__product-image img {
    max-width: 100%;
    max-height: 160px;
    width: auto;
    height: auto;
}
.wt-cleaning-popup__product-info {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    /* เว้นที่ขวาล่างให้ปุ่มกลม */
    padding-right: 44px;
}
.wt-cleaning-popup__product-name {
    color: #1F3C64;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    line-height: normal;
    font-family: 'Poppins-SemiBold';
}
.wt-cleaning-popup__product-prices {
    display: block;
}
.wt-cleaning-popup__product-old {
    color: #8a93a5;
    font-size: 12px;
    text-decoration: line-through;
    display: inline;
}
.wt-cleaning-popup__product-save {
    color: #e63946;
    font-size: 10px;
    font-weight: normal;
    display: inline;
    margin-left: 4px;
    font-family: 'Poppins';
}
.wt-cleaning-popup__product-price {
    display: block;
    color: #1F3C64;
    font-weight: 700;
    font-size: 18px;
    margin-top: 0;
}
/* ปุ่มกลมเขียว เพิ่มสินค้าทีละชิ้น (มุมขวาล่างของการ์ด) */
.wt-cleaning-popup__add-one {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #0fa968;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 169, 104, 0.4);
}
.wt-cleaning-popup__add-one img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.wt-cleaning-popup__add-one:disabled {
    opacity: 0.6;
    cursor: default;
}
.wt-cleaning-popup__actions {
    display: flex;
    gap: 12px;
}
.wt-cleaning-popup__addall, .wt-cleaning-popup__no {
    border: 0;
    border-radius: 999px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 23px;
    cursor: pointer;
    text-transform: uppercase;
}
.wt-cleaning-popup__addall {
    flex: 1 1 auto;
    background: #0fa968;
    color: #fff;
}
.wt-cleaning-popup__addall.is-loading {
    opacity: 0.6;
    cursor: default;
}
.wt-cleaning-popup__no {
    flex: 0 0 auto;
    background: #fff;
    color: #1F3C64;
    border: 1px solid #cfd6e2;
}
/* ≤575px (มือถือ–แท็บเล็ตเล็ก): การ์ดสินค้าเปลี่ยนเป็นแนวนอน stack ลงมา (side-by-side ของ desktop จะล้นจอในช่วงนี้) */
@media (max-width: 575px) {
    .wt-cleaning-popup__dialog {
        margin: 16px auto;
        padding: 24px 18px 20px;
    }
    .wt-cleaning-popup__title {
        font-size: 22px;
    }
    /* มือถือ: การ์ด stack แนวตั้ง (ไม่ล้นจอ) */
    .wt-cleaning-popup__products {
        flex-direction: column;
        gap: 12px;
        margin: 20px 0 24px;
    }
    /* แถบน้ำเงินคลุมเต็มพื้นที่การ์ดทั้งกอง (แทนแถบกลางแนวนอนของ desktop) */
    .wt-cleaning-popup__products::before {
        left: -18px;
        right: -18px;
        top: 0;
        height: 100%;
        transform: none;
    }
    /* แต่ละการ์ดเป็นแนวนอน: รูปซ้าย / ข้อมูลขวา / ปุ่ม + ขวาสุด */
    .wt-cleaning-popup__product {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 12px 14px;
    }
    .wt-cleaning-popup__product-image {
        flex: 0 0 50px;
        margin-bottom: 0;
    }
    .wt-cleaning-popup__product-image img {
        max-height: 72px;
    }
    .wt-cleaning-popup__product-info {
        margin-top: 0;
        padding-right: 20px;
    }
    .wt-cleaning-popup__actions {
        flex-direction: column;
    }
    .wt-cleaning-popup__product-name {
        color: #1F3C64;
        font-weight: 600;
        font-size: 12px;
        margin-bottom: 0;
        line-height: normal;
    }
    .wt-cleaning-popup__product-old {
        color: #8a93a5;
        font-size: 12px;
        text-decoration: line-through;
        display: inline;
    }
    .wt-cleaning-popup__product-price {
        display: block;
        color: #1F3C64;
        font-weight: 700;
        font-size: 14px;
        margin-top: 0;
    }
    .wt-cleaning-popup__text {
        color: #1F3C64;
        font-size: 12px;
        line-height: 1.5;
        margin: 0 0 12px;
    }
    body.ce-kit-1 h2.wt-cleaning-popup__title  {
        font-size: 18px;
        line-height: 1.2em;
    }
    .wt-cleaning-popup__addall, .wt-cleaning-popup__no {
        border: 0;
        border-radius: 999px;
        padding: 10px 18px;
        font-weight: 700;
        font-size: 14px;
        cursor: pointer;
        text-transform: uppercase;
        border: 1px solid #cfd6e2;
    }
}

/* === Serviceplan popup (pre-launch) — STUB: รอ restyle ตาม XD ของโทนี่ === */
.wt-serviceplan-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}
.wt-serviceplan-popup.is-visible {
    display: block;
}
.wt-serviceplan-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 60, 100, 0.55);
}
.wt-serviceplan-popup__dialog {
    position: relative;
    margin: 5vh auto;
    max-width: 720px;
    width: calc(100% - 32px);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 36px 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.wt-serviceplan-popup__close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #1F3C64;
    cursor: pointer;
}
.wt-serviceplan-popup__title {
    color: #1F3C64;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 16px;
    padding-right: 28px;
}
.wt-serviceplan-popup__title span {
    color: #0fa968;
}
.wt-serviceplan-popup__text {
    color: #1F3C64;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 12px;
}
/* note "launch กันยายน + GROHE Blue/Red" — กล่อง highlight ให้เด่น */
.wt-serviceplan-popup__note {
    margin: 4px 0 4px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #E8EFF4;
    color: #1F3C64;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
/* รูปปฏิทิน (banner) จากดีไซน์ — เป็นภาพประกอบ */
.wt-serviceplan-popup__banner {
    margin: 20px 0 24px;
}
.wt-serviceplan-popup__banner img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
}
.wt-serviceplan-popup__actions {
    display: flex;
    gap: 12px;
}
.wt-serviceplan-popup__cta {
    flex: 1 1 auto;
    border: 0;
    border-radius: 999px;
    padding: 16px 18px;
    background: #0fa968;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    cursor: pointer;
}
.wt-serviceplan-popup__cta.is-loading {
    opacity: 0.6;
    cursor: default;
}
.wt-serviceplan-popup__later {
    flex: 0 0 auto;
    border: 1px solid #cfd6e2;
    border-radius: 999px;
    padding: 16px 28px;
    background: #fff;
    color: #1F3C64;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    cursor: pointer;
}
.wt-serviceplan-popup__close-thanks {
    margin-top: 16px;
    border: 1px solid #cfd6e2;
    border-radius: 999px;
    padding: 12px 24px;
    background: #fff;
    color: #1F3C64;
    font-weight: 700;
    cursor: pointer;
}
/* สลับเนื้อหา ↔ ขอบคุณ */
.wt-serviceplan-popup__thanks {
    display: none;
    text-align: center;
}
.wt-serviceplan-popup.is-signed .wt-serviceplan-popup__main {
    display: none;
}
.wt-serviceplan-popup.is-signed .wt-serviceplan-popup__thanks {
    display: block;
}
@media (max-width: 575px) {
    .wt-serviceplan-popup__dialog {
        margin: 16px auto;
        padding: 24px 18px 20px;
    }
    .wt-serviceplan-popup__title {
        font-size: 21px;
    }
    .wt-serviceplan-popup__text {
        font-size: 13px;
    }
    .wt-serviceplan-popup__banner {
        margin: 16px 0 18px;
    }
    /* ปุ่ม stack แนวตั้งบนมือถือ */
    .wt-serviceplan-popup__actions {
        flex-direction: column;
    }
}

/* === Sensia popup (บริการดูแล Sensia-toilet) — ดีไซน์ตาม XD === */
.wt-sensia-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}
.wt-sensia-popup.is-visible {
    display: block;
}
.wt-sensia-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 60, 100, 0.55);
}
.wt-sensia-popup__dialog {
    position: relative;
    margin: 4vh auto;
    max-width: 860px;
    width: calc(100% - 32px);
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.wt-sensia-popup__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #eef1f6;
    font-size: 22px;
    line-height: 1;
    color: #1F3C64;
    cursor: pointer;
}
.wt-sensia-popup__title {
    color: #1F3C64;
    font-weight: 800;
    margin: 0 0 16px;
    padding-right: 32px;
}
/* หัวข้อ = สไตล์ h2 ของธีม แต่ scope เฉพาะ popup 3 (ไม่กระทบ h2 ทั้งเว็บ) */
.wt-sensia-popup h2 {
    font-family: "Poppins-Bold", Poppins;
    font-size: 25px !important;
    line-height: 1.3em;
}
.wt-sensia-popup__title span {
    color: #0fa968;
}
.wt-sensia-popup__text {
    color: #33445c;
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 10px;
}

/* ===== ปฏิทิน + การ์ดราคา (ใช้รูปจากดีไซน์แทน HTML) ===== */
.wt-sensia-popup__calendar {
    margin: 0;
}
.wt-sensia-popup__calendar img {
    display: block;
    width: 100%;
    height: auto;
}
.wt-sensia-popup__plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 10px;
}
.wt-sensia-popup__plan-img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== ปุ่ม ===== */
.wt-sensia-popup__actions {
    display: flex;
    gap: 14px;
    align-items: center;
}
.wt-sensia-popup__later {
    flex: 0 0 auto;
    border: 1px solid #cfd6e2;
    border-radius: 999px;
    padding: 16px 34px;
    background: #fff;
    color: #1F3C64;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    cursor: pointer;
}
.wt-sensia-popup__cta {
    flex: 1 1 auto;
    border: 0;
    border-radius: 999px;
    padding: 16px 18px;
    background: #4fb87a;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    text-transform: uppercase;
    cursor: pointer;
}
.wt-sensia-popup__cta:hover { background: #0fa968; }
.wt-sensia-popup__close-thanks {
    margin-top: 16px;
    border: 1px solid #cfd6e2;
    border-radius: 999px;
    padding: 12px 24px;
    background: #fff;
    color: #1F3C64;
    font-weight: 700;
    cursor: pointer;
}
.wt-sensia-popup__thanks {
    display: none;
    text-align: center;
}
.wt-sensia-popup.is-signed .wt-sensia-popup__main {
    display: none;
}
.wt-sensia-popup.is-signed .wt-sensia-popup__thanks {
    display: block;
}

@media (max-width: 575px) {
    .wt-sensia-popup__dialog { margin: 12px auto; padding: 26px 18px 20px; }
    .wt-sensia-popup h2 { font-size: 20px; }
    .wt-sensia-popup__plans { grid-template-columns: 1fr; }
    .wt-sensia-popup__actions { flex-direction: column; }
    .wt-sensia-popup__later, .wt-sensia-popup__cta { width: 100%; }

    .wt-sensia-popup__plans {
        display: flex;
        flex-direction: row;
        margin: 0;
        gap: 0px;
    }
    .wt-sensia-popup__plans .wt-sensia-popup__plan-img {
        display: block;
        width: 50%;
        height: auto;
    }
    .wt-sensia-popup__later, .wt-sensia-popup__cta {
        width: 50%;
        margin-top: 10px;
    }
    .wt-sensia-popup__later {
        padding: 5px 10px;
        width: 120px;
        font-size: 12px;
    }
    .wt-sensia-popup__cta {
        padding: 10px 18px;
        width: auto;
        font-size: 12px;
        margin-top: 10px;
        line-height: normal;
        border: 1px solid var(--secondary);
    }
    .wt-sensia-popup__actions {
        flex-direction: row;
    }
}