/* ========================================================================== 
   SJN custom WATI / WhatsApp website chat
   Brand: sky blue + deep navy + gold accent
   ========================================================================== */

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sjn-wati {
    --sjn-wati-primary: var(--c-primary, #1f9fd4);
    --sjn-wati-primary-dark: var(--c-primary-dark, #1581b1);
    --sjn-wati-navy: var(--c-navy, #0c2a3d);
    --sjn-wati-navy-deep: var(--c-navy-deep, #07111e);
    --sjn-wati-soft: var(--c-soft-2, #f5fbfe);
    --sjn-wati-line: var(--c-line, #cfe8f7);
    --sjn-wati-accent: var(--c-accent, #f5b400);
    --sjn-wati-wa: #25d366;
    --sjn-wati-shadow: 0 24px 60px rgba(7, 17, 30, .22);

    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9995;
    font-family: var(--ff-body, Inter, system-ui, sans-serif);
    color: #20394a;
}

.sjn-wati__launcher {
    position: relative;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #eaf7fd 100%);
    box-shadow: 0 10px 28px rgba(12, 42, 61, .28), 0 0 0 1px rgba(31, 159, 212, .18);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sjn-wati__launcher:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 34px rgba(12, 42, 61, .34), 0 0 0 1px rgba(31, 159, 212, .22);
}

.sjn-wati__launcher:focus-visible {
    outline: 3px solid var(--sjn-wati-accent);
    outline-offset: 3px;
}

.sjn-wati__launcher-logo {
    width: 53px;
    height: 53px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
}

.sjn-wati__launcher-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.sjn-wati__launcher-wa {
    position: absolute;
    right: -3px;
    bottom: -2px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--sjn-wati-wa);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}

.sjn-wati__launcher-wa svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.sjn-wati__launcher-wa .sjn-wati__launcher-phone {
    fill: var(--sjn-wati-wa);
}

.sjn-wati__badge {
    position: absolute;
    top: -7px;
    right: -4px;
    z-index: 3;
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef3038;
    color: #fff;
    font: 700 12px/1 var(--ff-head, "Plus Jakarta Sans", sans-serif);
    box-shadow: 0 4px 10px rgba(170, 22, 31, .25);
}

.sjn-wati__panel {
    position: absolute;
    right: 0;
    bottom: 82px;
    width: min(390px, calc(100vw - 32px));
    max-height: min(650px, calc(100vh - 118px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(31, 159, 212, .18);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--sjn-wati-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.975);
    transform-origin: right bottom;
    pointer-events: none;
    transition: opacity .2s ease, transform .22s ease, visibility .22s ease;
}

.sjn-wati.is-open .sjn-wati__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.sjn-wati__header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 17px 16px;
    background:
        radial-gradient(circle at 88% 15%, rgba(143, 212, 240, .28), transparent 28%),
        linear-gradient(115deg, var(--sjn-wati-navy) 0%, var(--sjn-wati-primary-dark) 100%);
    color: #fff;
}

.sjn-wati__brandmark {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.76);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}

.sjn-wati__brandmark img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.sjn-wati__heading {
    min-width: 0;
    flex: 1;
}

.sjn-wati__title {
    margin: 0 0 4px;
    color: #fff;
    font-family: var(--ff-head, "Plus Jakarta Sans", sans-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.sjn-wati__status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    line-height: 1.3;
}

.sjn-wati__status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #32e68c;
    box-shadow: 0 0 0 4px rgba(50, 230, 140, .12);
}

.sjn-wati__close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.56);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    transition: background .2s ease, transform .2s ease;
}

.sjn-wati__close:hover {
    background: rgba(255,255,255,.22);
    transform: rotate(3deg);
}

.sjn-wati__close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.sjn-wati__body {
    min-height: 0;
    overflow-y: auto;
    padding: 15px 16px 16px;
    background:
        linear-gradient(rgba(245, 251, 254, .92), rgba(245, 251, 254, .92)),
        radial-gradient(circle at 10% 15%, rgba(31, 159, 212, .09), transparent 32%);
    scrollbar-width: thin;
    scrollbar-color: #b8dced transparent;
}

.sjn-wati__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 4px 9px;
    color: #71899a;
    font-size: 11px;
}

.sjn-wati__avatar {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sjn-wati-primary);
    color: #fff;
    font: 700 8px/1 var(--ff-head, sans-serif);
}

.sjn-wati__meta-dot {
    color: #9eb4c3;
}

.sjn-wati__bubble {
    padding: 14px 15px;
    border: 1px solid #e3eef4;
    border-radius: 6px 18px 18px 18px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(12, 42, 61, .06);
    font-size: 14px;
    line-height: 1.55;
}

.sjn-wati__bubble + .sjn-wati__bubble {
    margin-top: 10px;
}

.sjn-wati__bubble p {
    margin: 0;
}

.sjn-wati__bubble p + p {
    margin-top: 3px;
}

.sjn-wati__greeting {
    color: var(--sjn-wati-navy);
    font-family: var(--ff-head, "Plus Jakarta Sans", sans-serif);
    font-weight: 700;
}

.sjn-wati__bubble--actions {
    border-radius: 18px;
}

.sjn-wati__prompt {
    margin-bottom: 10px !important;
    color: var(--sjn-wati-navy);
    font-family: var(--ff-head, "Plus Jakarta Sans", sans-serif);
    font-size: 13px;
    font-weight: 700;
}

.sjn-wati__quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sjn-wati__quick {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    padding: 10px 11px;
    border: 1px solid var(--sjn-wati-line);
    border-radius: 12px;
    background: #fff;
    color: var(--sjn-wati-navy);
    text-align: left;
    font-family: var(--ff-head, "Plus Jakarta Sans", sans-serif);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.sjn-wati__quick:hover {
    border-color: var(--sjn-wati-primary);
    background: #f1faff;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(31, 159, 212, .10);
}

.sjn-wati__quick-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--sjn-wati-soft);
    color: var(--sjn-wati-primary-dark);
}

.sjn-wati__quick-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sjn-wati__whatsapp-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 11px;
    padding: 12px 13px;
    border-radius: 14px;
    background: linear-gradient(110deg, #19b958, #25d366);
    color: #fff;
    box-shadow: 0 9px 22px rgba(37, 211, 102, .20);
    transition: transform .2s ease, box-shadow .2s ease;
}

.sjn-wati__whatsapp-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(37, 211, 102, .27);
}

.sjn-wati__wa-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
}

.sjn-wati__wa-icon svg {
    width: 31px;
    height: 31px;
    fill: #fff;
}

.sjn-wati__wa-phone {
    fill: #25d366;
}

.sjn-wati__whatsapp-cta span:nth-child(2) {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sjn-wati__whatsapp-cta strong {
    color: #fff;
    font-family: var(--ff-head, "Plus Jakarta Sans", sans-serif);
    font-size: 12px;
    line-height: 1.3;
}

.sjn-wati__whatsapp-cta small {
    color: rgba(255,255,255,.84);
    font-size: 10px;
    line-height: 1.35;
}

.sjn-wati__cta-arrow {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sjn-wati__composer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 13px 10px;
    border-top: 1px solid #e7f0f5;
    background: #fff;
}

.sjn-wati__composer input {
    min-width: 0;
    flex: 1;
    height: 43px;
    padding: 0 14px;
    border: 1.5px solid #a9d9ed;
    border-radius: 999px;
    background: #fff;
    color: #20394a;
    font: 400 13px/1 var(--ff-body, Inter, sans-serif);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sjn-wati__composer input:focus {
    border-color: var(--sjn-wati-primary);
    box-shadow: 0 0 0 3px rgba(31, 159, 212, .12);
}

.sjn-wati__composer input::placeholder {
    color: #7c98aa;
}

.sjn-wati__composer button {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--sjn-wati-primary);
    color: #fff;
    box-shadow: 0 7px 16px rgba(31, 159, 212, .24);
    transition: background .2s ease, transform .2s ease;
}

.sjn-wati__composer button:hover {
    background: var(--sjn-wati-primary-dark);
    transform: translateY(-1px);
}

.sjn-wati__composer button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sjn-wati__powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 12px 10px;
    background: #fff;
    color: #91a4b1;
    font-size: 9px;
    line-height: 1;
}

.sjn-wati__powered strong {
    color: #18a750;
    font-weight: 700;
}

@media (max-width: 767px) {
    .sjn-wati {
        right: 14px;
        bottom: 14px;
    }

    .sjn-wati__launcher {
        width: 62px;
        height: 62px;
    }

    .sjn-wati__launcher-logo {
        width: 49px;
        height: 49px;
    }

    .sjn-wati__launcher-logo img {
        width: 46px;
        height: 46px;
    }

    .sjn-wati__panel {
        position: fixed;
        right: 10px;
        left: 10px;
        bottom: 86px;
        width: auto;
        max-height: min(650px, calc(100dvh - 104px));
        border-radius: 19px;
        transform-origin: center bottom;
    }

    .sjn-wati__header {
        min-height: 82px;
        padding: 14px;
    }

    .sjn-wati__brandmark {
        width: 49px;
        height: 49px;
        flex-basis: 49px;
    }

    .sjn-wati__brandmark img {
        width: 44px;
        height: 44px;
    }

    .sjn-wati__body {
        padding: 13px;
    }

    .sjn-wati__bubble {
        font-size: 13px;
    }

    .sjn-wati__quick {
        min-height: 66px;
    }
}

@media (max-width: 380px) {
    .sjn-wati__quick-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sjn-wati__panel,
    .sjn-wati__launcher,
    .sjn-wati__quick,
    .sjn-wati__whatsapp-cta,
    .sjn-wati__composer button {
        transition: none !important;
    }
}
