/* Scoped additions; master page continues to load the existing curewell.css. */
.cw-tests { padding-top:16px; padding-bottom:20px; color:var(--ink,#183459); font-family:inherit; }
.cw-tests * { box-sizing:border-box; }
.cwt-intro { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:16px; }
.cwt-eyebrow { margin:0 0 5px; font-size:11px; font-weight:700; letter-spacing:1.4px; color:var(--muted,#5c6e85); }
.cw-tests h1 { margin:0; font-size:clamp(26px,3vw,36px); line-height:1.2; color:var(--navy,#092b60); }
.cwt-subtitle { margin:7px 0 0; font-size:14px; }
.cwt-care { border:1px solid var(--line,#dce7f0); border-radius:12px; padding:10px 14px; font-size:12px; background:var(--blue,#eaf4fc); text-decoration:none; color:var(--ink,#183459); white-space:nowrap; }
.cwt-care strong { display:block; font-size:16px; color:var(--navy,#092b60); }
.cwt-searchbar { background:var(--blue,#eaf4fc); border:1px solid var(--line,#dce7f0); border-radius:14px; padding:12px; margin-bottom:14px; }
.cwt-searchbar label { display:block; margin-bottom:5px; font-size:13px; font-weight:700; }
.cwt-searchrow { display:flex; gap:8px; }
.cwt-searchrow input { flex:1; min-width:0; background:white; border:1px solid #c4d7e8; border-radius:9px; padding:10px 12px; font:inherit; }
.cwt-searchrow button { background:var(--navy,#092b60); color:white; border:0; border-radius:9px; padding:9px 18px; font:inherit; cursor:pointer; }
#cwt-count { font-size:12px; margin:6px 0 0; color:var(--muted,#5c6e85); }
.cwt-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:start; }
.cwt-card { background:white; border:1px solid var(--line,#dce7f0); border-top:3px solid #bddaf0; border-radius:16px; padding:16px; min-width:0; box-shadow:0 4px 18px #092b6006; }
.cwt-card:hover { border-top-color:var(--orange,#f4510b); box-shadow:0 6px 20px #092b6010; }
.cwt-cardtop { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:10px; }
.cwt-tag { background:#edf5fd; color:#386b98; font-size:11px; font-weight:700; border-radius:6px; padding:4px 8px; }
.cwt-icon { background:#f2f8fc; border-radius:10px; color:#648cae; width:34px; height:34px; display:grid; place-items:center; }
.cw-tests .cwt-name { margin:0 0 12px; font-size:19px; line-height:1.4; min-height:54px; color:var(--navy,#092b60); overflow-wrap:anywhere; }
.cwt-price { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:12px; }
.cwt-price span { font-size:12px; color:var(--muted,#5c6e85); }
.cwt-price strong { font-size:24px; color:var(--navy,#092b60); }
.cwt-details { border-top:1px solid var(--line,#dce7f0); }
.cwt-details summary { cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0 0; color:var(--navy,#092b60); font-size:13px; font-weight:700; list-style:none; }
.cwt-details summary::-webkit-details-marker { display:none; }
.cwt-chevron { width:8px; height:8px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin-right:3px; }
.cwt-details[open] .cwt-chevron { transform:rotate(225deg); }
.cwt-detailbody { padding:10px 0 0; font-size:13px; color:var(--muted,#5c6e85); overflow-wrap:anywhere; }
.cwt-detailbody p { margin:0 0 9px; }
.cwt-enquire { display:inline-block; background:#fff1e9; color:#a8400c; padding:8px 12px; border-radius:8px; text-decoration:none; font-weight:700; }
.cwt-empty,.cwt-error { padding:14px; border:1px solid var(--line,#dce7f0); border-radius:12px; background:white; }
.cwt-error { color:#9c2929; background:#fff3f3; margin-bottom:12px; }
.cw-tests [hidden] { display:none !important; }
.cw-tests :is(a,button,input,summary):focus-visible { outline:3px solid #1373bc; outline-offset:3px; }
@media(max-width:960px) { .cwt-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .cwt-intro { align-items:flex-start; flex-direction:column; gap:10px; } .cwt-grid { grid-template-columns:1fr; gap:10px; } .cwt-care { width:100%; } .cw-tests .cwt-name { min-height:0; } }


/* =========================================================
   TEST CATALOGUE
   ========================================================= */
.cw-tests .cwt-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
}

.cw-tests .cwt-card {
    min-width: 0;
    min-height: 188px;
    padding: 14px;
    border: 1px solid #cfe2f1;
    border-radius: 16px;
    background: linear-gradient(180deg,#fbfdff 0%,#f5faff 100%);
    box-shadow: 0 5px 16px rgba(39,83,120,.055);
}

.cw-tests .cwt-cardtop {
    margin-bottom: 9px
}

.cw-tests .cwt-tag {
    background: #eaf4fd;
    color: #3e6f99;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 10px;
    letter-spacing: .2px;
}

.cw-tests .cwt-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eef7fd;
    color: #6f9fc2;
}

.cw-tests .cwt-name {
    font-size: 17px;
    line-height: 1.3;
    margin: 8px 0 14px;
    color: #0a3563;
    min-height: 44px;
}

.cw-tests .cwt-price {
    margin-top: auto;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
}

    .cw-tests .cwt-price span {
        font-size: 11px;
        color: #71879a;
    }

    .cw-tests .cwt-price strong {
        font-size: 21px;
        color: #0a3563;
    }

.cwt-card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid #deebf4;
}

.cwt-detail-btn,
.cwt-add-btn {
    border: 1px solid #c9deed;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    border-radius: 9px;
    min-height: 36px;
    padding: 0 11px;
}

.cwt-detail-btn {
    background: #f5faff;
    color: #315f86;
    text-align: left;
}

.cwt-add-btn {
    background: #e9f6f2;
    color: #2d7766;
    border-color: #bfdfd5;
    white-space: nowrap;
}

    .cwt-add-btn.is-added {
        background: #dff2eb;
        color: #226554;
        border-color: #acd6c8;
    }

.cwt-loadmore-wrap {
    text-align: center;
    margin: 24px 0 4px;
}

.cwt-loadmore {
    min-width: 170px;
    min-height: 42px;
    padding: 0 22px;
    border-radius: 11px;
    border: 1px solid #bcd6ea;
    background: #f8fbfe;
    color: #315f86;
    font-weight: 700;
    cursor: pointer;
}

    .cwt-loadmore:hover {
        background: #eef7fd
    }


/* Sample information */

.cw-tests .cwt-sample-row {
    margin: -6px 0 5px;
}

.cwt-sample {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.cwt-sample-blood {
    background: #ffedf0;
    color: #a4384b;
}

.cwt-sample-urine {
    background: #fff5cf;
    color: #806513;
}

.cwt-sample-other {
    background: #edf4fa;
    color: #526d82;
}

.cw-tests .cwt-instruction {
    font-size: 11px;
    line-height: 1.4;
    color: #647a8c;
    margin: 0 0 10px;
}

.cwt-extra {
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-line;
    color: #536575;
}

    .cwt-extra[hidden] {
        display: none !important
    }

.cwt-review {
    color: #86631e;
    background: #fff8e7;
    padding: 7px 9px;
    border-radius: 7px;
}


/* =========================================================
   TEST DETAIL POPUP
   ========================================================= */

.cwt-modal[hidden] {
    display: none !important
}

.cwt-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cwt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22,48,70,.42);
    backdrop-filter: blur(2px);
}

.cwt-modal-card {
    position: relative;
    width: min(510px,100%);
    max-height: 84vh;
    overflow: auto;
    background: #fff;
    border: 1px solid #d7e6f1;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(31,61,84,.18);
}

.cwt-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg,#f2f8fd,#fbfdff);
    border-bottom: 1px solid #e0ecf4;
}

.cwt-modal-kicker {
    margin: 0 0 4px;
    color: #6b88a0;
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
}

.cwt-modal-title {
    margin: 0;
    color: #123f6c;
    font-size: 20px;
    line-height: 1.25;
}

.cwt-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d0e1ee;
    background: #fff;
    color: #56758f;
    font-size: 19px;
    cursor: pointer;
    flex: 0 0 auto;
}

    .cwt-modal-close:hover {
        background: #e8f4ff;
        border-color: #b7d6ef;
        transform: rotate(90deg);
        box-shadow: 0 4px 12px rgba(14,65,110,.12);
        transition: .18s ease;
    }

.cwt-modal-body {
    padding: 14px 16px 16px;
}

.cwt-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.cwt-info {
    background: #f7fbfe;
    border: 1px solid #dceaf3;
    border-radius: 11px;
    padding: 10px 11px;
}

    .cwt-info.report {
        background: #f2faf7;
        border-color: #d5ebe3;
    }

.cwt-info-label {
    display: block;
    font-size: 10px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #7890a3;
    font-weight: 700;
    margin-bottom: 4px;
}

.cwt-info-value {
    color: #244f74;
    font-weight: 700;
    font-size: 13px;
    word-break: break-word;
}

.cwt-info.report .cwt-info-value {
    color: #3f7668
}

.cwt-why {
    margin-top: 10px;
    padding: 12px 13px;
    border-radius: 11px;
    background: #fffaf1;
    border: 1px solid #f1e3c8;
}

.cwt-why-title {
    display: block;
    margin-bottom: 5px;
    color: #8a6a2d;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 800;
}

.cwt-why-text {
    margin: 0;
    color: #536575;
    line-height: 1.45;
    font-size: 13px;
}

.cwt-modal-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e4edf4;
}

.cwt-modal-price {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 95px;
}

    .cwt-modal-price span {
        color: #8194a4;
        font-size: 10px;
    }

    .cwt-modal-price strong {
        color: #123f6c;
        font-size: 22px;
        line-height: 1.1;
    }

.cwt-modal-actions {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

    .cwt-modal-actions button,
    .cwt-modal-actions a {
        min-height: 38px;
        border-radius: 10px;
        padding: 0 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-weight: 700;
        font-size: 13px;
    }

.cwt-modal-add {
    border: 1px solid #b9d5e8;
    background: #eaf5fd;
    color: #285f8b;
    cursor: pointer;
}

    .cwt-modal-add.is-added {
        background: #dff2eb;
        color: #226554;
        border-color: #acd6c8;
    }

.cwt-modal-call {
    border: 1px solid #d2e1ec;
    background: #fafcfe;
    color: #56758f;
}

body.cwt-modal-open {
    overflow: hidden
}


/* =========================================================
   PACKAGE SPOTLIGHT - DESKTOP
   ========================================================= */

.cwp-wrap {
    margin: 14px auto 24px;
}

.cwp-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border-radius: 24px;
    background: radial-gradient(circle at 12% 15%,rgba(255,255,255,.18),transparent 27%), linear-gradient(120deg,#63c9f5 0%,#087ccc 38%,#073d96 100%);
    box-shadow: 0 14px 34px rgba(22,71,128,.16);
}


/* CRITICAL CAROUSEL RULE */

.cwp-slide {
    display: none;
    grid-template-columns: 39% 61%;
    min-height: 360px;
}

    .cwp-slide.active {
        display: grid;
    }


.cwp-left {
    position: relative;
    padding: 38px 32px 38px 74px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cwp-package-image {
    width: 100%;
    max-width: 310px;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    border-radius: 22px;
    border: 5px solid rgba(255,255,255,.72);
    box-shadow: 0 0 0 4px rgba(5,84,160,.65), 0 15px 30px rgba(0,45,100,.18);
}

.cwp-right {
    padding: 34px 62px 28px 18px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.cwp-kicker {
    display: inline-flex;
    align-self: flex-start;
    border: 2px solid rgba(255,255,255,.75);
    border-radius: 28px;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.cwp-title {
    margin: 10px 0 4px;
    color: #fff;
    font-size: 35px;
    line-height: 1.08;
    font-weight: 800;
}

.cwp-desc {
    margin: 0 0 17px;
    color: rgba(255,255,255,.90);
    font-size: 14px;
    line-height: 1.45;
}


/* PACKAGE STATS */

.cwp-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.18fr;
    overflow: hidden;
    background: rgba(245,251,255,.96);
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 18px;
    min-height: 105px;
}

.cwp-stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    color: #113a6c;
    min-width: 0;
}

    .cwp-stat:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 22%;
        bottom: 22%;
        width: 1px;
        background: #b6d8ef;
    }

.cwp-stat-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f6ff;
    color: #168bd1;
}

    .cwp-stat-icon svg {
        width: 23px;
        height: 23px;
    }

.cwp-stat-copy {
    min-width: 0;
}

.cwp-stat-label {
    display: block;
    margin-bottom: 2px;
    color: #56728e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.cwp-stat-value {
    display: block;
    color: #12396b;
    font-size: 22px;
    line-height: 1.05;
    font-weight: 800;
}

.cwp-stat.mrp .cwp-stat-icon {
    color: #e33232;
}

.cwp-old-price {
    text-decoration: line-through;
    text-decoration-color: #dc2020;
    text-decoration-thickness: 2px;
}

.cwp-stat.saving .cwp-stat-icon {
    background: #e9fae9;
    color: #07972b;
}

.cwp-stat.saving .cwp-stat-value {
    color: #078f25;
}

.cwp-stat.final-price {
    background: linear-gradient(135deg,#fff3b2,#ffd873);
}

    .cwp-stat.final-price::after {
        display: none;
    }

    .cwp-stat.final-price .cwp-stat-label {
        color: #c34b19;
    }

    .cwp-stat.final-price .cwp-stat-value {
        color: #c51212;
        font-size: 28px;
    }


/* BENEFITS */

.cwp-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    align-items: center;
    gap: 0;
    margin-top: 17px;
}

.cwp-benefit {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border-right: 1px solid rgba(255,255,255,.35);
}

    .cwp-benefit:first-child {
        padding-left: 0;
    }

    .cwp-benefit:nth-child(4) {
        border-right: 0;
    }

.cwp-benefit-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}

.cwp-benefit:nth-child(1) .cwp-benefit-icon {
    background: #ff4c62;
}

.cwp-benefit:nth-child(2) .cwp-benefit-icon {
    background: #23aef0;
}

.cwp-benefit:nth-child(3) .cwp-benefit-icon {
    background: #16c98d;
}

.cwp-benefit:nth-child(4) .cwp-benefit-icon {
    background: #9258e8;
}

.cwp-benefit-icon svg {
    width: 21px;
    height: 21px;
}

.cwp-benefit-text {
    color: #fff;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;
}


/* VIEW PACKAGE */

.cwp-view-btn {
    min-width: 190px;
    height: 52px;
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid #fff;
    border-radius: 17px;
    background: #f72f63;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(101,0,39,.14);
    transition: .18s ease;
}

    .cwp-view-btn:hover {
        background: #e61e53;
        transform: translateY(-1px);
    }


/* NAVIGATION */

.cwp-nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.7);
    background: #083f8e;
    color: #fff;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .18s ease;
}

    .cwp-nav:hover {
        background: #052f72;
        transform: translateY(-50%) scale(1.06);
    }

.cwp-prev {
    left: 18px
}

.cwp-next {
    right: 18px
}

.cwp-dots {
    position: absolute;
    left: 56%;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.cwp-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(255,255,255,.55);
    cursor: pointer;
}

    .cwp-dot.active {
        width: 26px;
        background: #fff;
    }


/* PACKAGE THUMBNAILS */

.cwp-thumbs {
    display: grid;
    grid-template-columns: repeat(8,minmax(0,1fr));
    gap: 8px;
    margin-top: 10px;
}

.cwp-thumb {
    padding: 4px 4px 6px;
    border: 1px solid #cfe0ed;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: .18s ease;
    box-shadow: 0 3px 10px rgba(35,77,112,.055);
}

    .cwp-thumb:hover {
        transform: translateY(-2px);
        border-color: #87bee2;
    }

    .cwp-thumb.active {
        border: 2px solid #078fe0;
        padding: 3px 3px 5px;
    }

    .cwp-thumb img {
        width: 100%;
        height: 76px;
        object-fit: cover;
        display: block;
        border-radius: 8px;
    }

.cwp-thumb-name {
    display: block;
    margin-top: 4px;
    min-height: 22px;
    color: #073a72;
    font-size: 8px;
    line-height: 1.12;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}


/* =========================================================
   PACKAGE DETAIL POPUP
   ========================================================= */

.cwp-modal[hidden] {
    display: none !important;
}

.cwp-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cwp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,35,60,.48);
    backdrop-filter: blur(2px);
}

.cwp-modal-card {
    position: relative;
    width: min(680px,100%);
    max-height: 86vh;
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(13,44,75,.23);
    border: 1px solid #d7e7f3;
}

.cwp-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg,#edf7ff,#fff);
    border-bottom: 1px solid #dceaf4;
}

    .cwp-modal-head h2 {
        margin: 0;
        color: #0d3d71;
        font-size: 22px;
    }

.cwp-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #d0e1ee;
    background: #fff;
    color: #56758f;
    font-size: 20px;
    cursor: pointer;
    transition: .18s ease;
}

    .cwp-modal-close:hover {
        background: #e8f4ff;
        border-color: #b7d6ef;
        transform: rotate(90deg);
        box-shadow: 0 4px 12px rgba(14,65,110,.12);
    }

.cwp-modal-body {
    padding: 16px 18px 18px;
}

.cwp-modal-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
}

.cwp-modal-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #d7e6f1;
}

.cwp-modal-desc {
    margin: 0;
    color: #536d83;
    line-height: 1.55;
    font-size: 13px;
}

.cwp-modal-stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
    margin-top: 14px;
}

.cwp-modal-stat {
    padding: 10px;
    border-radius: 11px;
    background: #f5faff;
    border: 1px solid #dceaf3;
}

    .cwp-modal-stat span {
        display: block;
        color: #7890a3;
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .cwp-modal-stat strong {
        display: block;
        margin-top: 3px;
        color: #123f6c;
        font-size: 16px;
    }

    .cwp-modal-stat.save strong {
        color: #078f25;
    }

    .cwp-modal-stat.price {
        background: #fff7d9;
        border-color: #f1df93;
    }

        .cwp-modal-stat.price strong {
            color: #c51212;
        }

body.cwp-modal-open {
    overflow: hidden;
}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:1100px) {

    .cw-tests .cwt-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .cwp-title {
        font-size: 28px;
    }

    .cwp-right {
        padding-right: 48px;
    }

    .cwp-benefit-text {
        font-size: 10px;
    }

    .cwp-view-btn {
        min-width: 160px;
    }
}


/* =========================================================
   MOBILE / TABLET PACKAGE VIEW
   ========================================================= */

@media(max-width:768px) {

    .cw-tests .cwt-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .cwp-wrap {
        margin: 10px auto 18px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .cwp-hero {
        min-height: 0;
        border-radius: 18px;
        overflow: hidden;
    }


    /* =====================================================
       VERY IMPORTANT:
       ONLY ACTIVE PACKAGE IS VISIBLE
       ===================================================== */

    .cwp-slide {
        display: none !important;
        min-height: 0;
        grid-template-columns: none;
    }

        .cwp-slide.active {
            display: block !important;
        }


    /* IMAGE */

    .cwp-left {
        padding: 16px 56px 8px;
        min-height: 0;
    }

    .cwp-package-image {
        width: 190px;
        max-width: 58vw;
        aspect-ratio: 1/1;
        border-width: 3px;
        border-radius: 16px;
    }


    /* PACKAGE TEXT */

    .cwp-right {
        padding: 10px 14px 30px;
        min-width: 0;
        text-align: center;
    }

    .cwp-kicker {
        align-self: center;
        padding: 5px 13px;
        font-size: 9px;
        border-width: 1px;
        white-space: nowrap;
    }

    .cwp-title {
        width: 100%;
        margin: 8px 0 4px;
        padding: 0;
        font-size: 22px;
        line-height: 1.14;
        text-align: center;
        white-space: normal;
        overflow: visible;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .cwp-desc {
        margin: 0 0 11px;
        font-size: 10.5px;
        line-height: 1.38;
        text-align: center;
    }


    /* =====================================================
       MOBILE 2 X 2 STATS
       ===================================================== */

    .cwp-stats {
        display: grid;
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
        border-radius: 14px;
        min-height: 0;
        overflow: hidden;
    }

    .cwp-stat {
        min-width: 0;
        min-height: 74px;
        padding: 10px 9px;
        gap: 8px;
        justify-content: flex-start;
        overflow: hidden;
    }

        .cwp-stat:nth-child(1),
        .cwp-stat:nth-child(2) {
            border-bottom: 1px solid #b6d8ef;
        }

            .cwp-stat:nth-child(2)::after {
                display: none;
            }

        .cwp-stat:nth-child(3)::after {
            display: block;
        }

    .cwp-stat-icon {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

        .cwp-stat-icon svg {
            width: 17px;
            height: 17px;
        }

    .cwp-stat-copy {
        min-width: 0;
        text-align: left;
        overflow: hidden;
    }

    .cwp-stat-label {
        font-size: 8px;
        letter-spacing: .5px;
        white-space: normal;
        line-height: 1.15;
    }

    .cwp-stat-value {
        font-size: 16px;
        line-height: 1.08;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .cwp-old-price {
        white-space: nowrap;
    }

    .cwp-stat.final-price .cwp-stat-value {
        font-size: 18px;
        white-space: nowrap;
    }


    /* BENEFITS 2 X 2 */

    .cwp-bottom {
        display: grid;
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
        gap: 11px 9px;
        margin-top: 12px;
    }

    .cwp-benefit {
        min-width: 0;
        padding: 0;
        border: 0;
        gap: 7px;
        text-align: left;
    }

    .cwp-benefit-icon {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

        .cwp-benefit-icon svg {
            width: 17px;
            height: 17px;
        }

    .cwp-benefit-text {
        min-width: 0;
        font-size: 9px;
        line-height: 1.18;
        overflow-wrap: break-word;
    }


    /* VIEW PACKAGE */

    .cwp-view-btn {
        grid-column: 1/-1;
        width: 100%;
        min-width: 0;
        height: 44px;
        margin: 2px 0 0;
        border-radius: 12px;
        font-size: 14px;
    }


    /* NAV ARROWS - BESIDE IMAGE */

    .cwp-nav {
        top: 105px;
        width: 36px;
        height: 36px;
        transform: none;
        font-size: 22px;
    }

        .cwp-nav:hover {
            transform: none;
        }

    .cwp-prev {
        left: 10px;
    }

    .cwp-next {
        right: 10px;
    }


    /* DOTS */

    .cwp-dots {
        left: 50%;
        bottom: 7px;
        transform: translateX(-50%);
    }


    /* HORIZONTAL SWIPE THUMBNAILS */

    .cwp-thumbs {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 1px 7px;
        margin-top: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .cwp-thumbs::-webkit-scrollbar {
            display: none;
        }

    .cwp-thumb {
        flex: 0 0 92px;
        scroll-snap-align: start;
        padding: 4px;
    }

        .cwp-thumb.active {
            padding: 3px;
        }

        .cwp-thumb img {
            height: 62px;
            border-radius: 7px;
        }

    .cwp-thumb-name {
        font-size: 7px;
        line-height: 1.1;
        min-height: 24px;
        margin-top: 4px;
    }


    /* PACKAGE POPUP */

    .cwp-modal {
        padding: 10px;
    }

    .cwp-modal-card {
        max-height: 90vh;
        border-radius: 16px;
    }

    .cwp-modal-grid {
        grid-template-columns: 90px minmax(0,1fr);
        gap: 10px;
    }

    .cwp-modal-img {
        width: 90px;
        height: 90px;
        border-radius: 12px;
    }

    .cwp-modal-stats {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media(max-width:520px) {

    .cw-tests .cwt-grid {
        grid-template-columns: 1fr;
    }

    .cw-tests .cwt-name {
        min-height: 0;
    }

    .cwt-quick-grid {
        grid-template-columns: 1fr;
    }

    .cwt-modal-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .cwt-modal-actions {
        width: 100%;
    }

        .cwt-modal-actions button,
        .cwt-modal-actions a {
            flex: 1;
        }


    .cwp-wrap {
        margin: 8px auto 16px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .cwp-left {
        padding: 14px 48px 6px;
    }

    .cwp-package-image {
        width: 170px;
        max-width: 54vw;
    }

    .cwp-right {
        padding: 9px 12px 27px;
    }

    .cwp-title {
        font-size: 21px;
        line-height: 1.12;
    }

    .cwp-desc {
        font-size: 10px;
    }

    .cwp-stat {
        min-height: 70px;
        padding: 9px 7px;
        gap: 6px;
    }

    .cwp-stat-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

        .cwp-stat-icon svg {
            width: 16px;
            height: 16px;
        }

    .cwp-stat-value {
        font-size: 15px;
    }

    .cwp-stat.final-price .cwp-stat-value {
        font-size: 17px;
    }

    .cwp-benefit-icon {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .cwp-benefit-text {
        font-size: 8.5px;
    }

    .cwp-nav {
        top: 88px;
        width: 34px;
        height: 34px;
        font-size: 20px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media(max-width:380px) {

    .cwp-left {
        padding-left: 45px;
        padding-right: 45px;
    }

    .cwp-package-image {
        width: 155px;
        max-width: 54vw;
    }

    .cwp-title {
        font-size: 19px;
    }

    .cwp-stat {
        padding: 8px 6px;
        gap: 5px;
    }

    .cwp-stat-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .cwp-stat-value {
        font-size: 14px;
    }

    .cwp-stat.final-price .cwp-stat-value {
        font-size: 16px;
    }

    .cwp-benefit-text {
        font-size: 8px;
    }

    .cwp-nav {
        top: 80px;
        width: 32px;
        height: 32px;
    }
}
