/* ============================================================
   PDP mobile info sections (2026-10-02) - /produk/{slug}, < 768px.
   Deskripsi + Isi Paket. Desktop untouched (all rules in the query).

   The old mobile "Rangkuman Deskripsi" bullet list was built from the
   exact same key_features as Isi Paket right below it, so mobile read
   the same 4 lines twice. Here the summary list is hidden and the real
   description shows as a faded preview instead; the existing
   "Selengkapnya" toggle (.is-expanded via data-desc-toggle) expands it.
   ============================================================ */

@media (max-width: 767.98px) {
    /* ---------- Section cards + titles ---------- */
    .pdp-shopee .pdp-info-sections .pdp-sec-deskripsi,
    .pdp-shopee .pdp-info-sections .pdp-sec-isi-paket-info {
        margin-top: 12px;
        padding: 1.15rem 1.1rem 1.2rem;
        border: 1px solid #eef0f3;
        border-radius: 20px;
        background: #ffffff;
        box-shadow: 0 10px 28px -20px rgba(15, 23, 42, 0.35);
    }

    /* The grid gap above already separates the first card from the purchase card */
    .pdp-shopee .pdp-info-sections .pdp-sec-deskripsi {
        margin-top: 0;
    }

    .pdp-shopee .pdp-info-sections .pdp-shp-section-title {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 14px;
        padding: 0;
        color: #0f172a;
        font-family: var(--font-family);
        font-size: 1.05rem;
        font-weight: 800;
        letter-spacing: -0.01em;
        text-transform: none;
    }

    /* ---------- Deskripsi: faded preview instead of the duplicate list ---------- */
    .pdp-shopee .pdp-desc-body.has-summary .pdp-desc-summary {
        margin: 0;
    }

    .pdp-shopee .pdp-desc-body.has-summary .pdp-desc-summary-head,
    .pdp-shopee .pdp-desc-body.has-summary .pdp-desc-summary-list {
        display: none;
    }

    /* Toggle sits after the text visually, though it comes first in the DOM */
    .pdp-shopee .pdp-desc-body.has-summary {
        display: flex;
        flex-direction: column;
    }

    .pdp-shopee .pdp-desc-body.has-summary .pdp-desc-summary {
        order: 2;
    }

    .pdp-shopee .pdp-desc-body.has-summary .product-description-content,
    .pdp-shopee .pdp-desc-body.has-summary .product-description-content.is-expanded {
        order: 1;
        display: block;
        margin: 0;
        padding: 0;
        border: 0;
    }

    .pdp-shopee .pdp-desc-body.has-summary .product-description-content:not(.is-expanded) {
        max-height: 9.2em;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
    }

    .pdp-shopee .pdp-info-sections .product-description-content {
        color: #475569;
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .pdp-shopee .pdp-info-sections .product-description-content p {
        margin-bottom: 0.8em;
    }

    .pdp-shopee .pdp-info-sections .product-description-content p:last-child {
        margin-bottom: 0;
    }

    .pdp-shopee .pdp-desc-body.has-summary .pdp-desc-summary-toggle {
        width: auto;
        margin: 12px auto 0;
        padding: 8px 16px;
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        background: #ffffff;
        color: #0f172a;
        font-size: 0.82rem;
        font-weight: 700;
        box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.2);
    }

    .pdp-shopee .pdp-desc-body.has-summary .pdp-desc-summary-toggle[aria-expanded="true"] {
        background: #f8fafc;
    }

    /* Short descriptions that fit the preview: no fade, no toggle (set by JS) */
    .pdp-shopee .pdp-desc-body.is-short .product-description-content:not(.is-expanded) {
        max-height: none;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .pdp-shopee .pdp-desc-body.is-short .pdp-desc-summary {
        display: none;
    }

    /* ---------- Isi Paket: highlighted checklist ---------- */
    .pdp-shopee .pdp-sec-isi-paket-info {
        position: relative;
        overflow: hidden;
    }

    .pdp-shopee .pdp-sec-isi-paket-info::after {
        content: '';
        position: absolute;
        top: -70px;
        right: -50px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: radial-gradient(closest-side, rgba(255, 235, 0, 0.2), transparent);
        pointer-events: none;
    }

    .pdp-shopee .pdp-sec-isi-paket-info .feature-checklist {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .pdp-shopee .pdp-sec-isi-paket-info .feature-checklist-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin: 0;
        padding: 12px 14px;
        border: 1px solid #f1f5f9;
        border-radius: 14px;
        background: #f8fafc;
    }

    .pdp-shopee .pdp-sec-isi-paket-info .feature-checklist-item i {
        flex-shrink: 0;
        display: grid;
        place-items: center;
        width: 26px;
        height: 26px;
        margin: 0;
        border-radius: 8px;
        background: #0f172a;
        color: #ffeb00;
        font-size: 0.8rem;
    }

    .pdp-shopee .pdp-sec-isi-paket-info .feature-checklist-item span {
        padding-top: 2px;
        color: #1e293b;
        font-size: 0.88rem;
        font-weight: 600;
        line-height: 1.45;
    }
}
