/*
 * NYALA FLOATING INVESTMENT V1.5
 *
 * Desktop >= 1024: Floating right
 * Tablet 768-1023: Floating right
 * Mobile <= 767: Bottom panel
 *
 * Scope: Single Experience P03 only
 */

:root {
    --nyala-fi-yellow: #F3CD56;
    --nyala-fi-deep-yellow: #D7A816;
    --nyala-fi-navy: #172539;
}

/* ==================================================
   HIDE EXISTING DUPLICATE TRIGGER
   ================================================== */

body.nyala-p03-active
.nyala-investment-v3__trigger {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==================================================
   DESKTOP & TABLET FLOATING BUTTON
   ================================================== */

@media (min-width: 768px) {

    body.nyala-p03-active
    .nyala-floating-v14 {
        position: fixed !important;

        left: auto !important;
        right: 24px !important;
        top: 50% !important;
        bottom: auto !important;

        transform: translateY(-50%) !important;

        width: auto !important;
        max-width: 320px;

        z-index: 900;

        padding: 0;

        background: transparent;

        border: 0;
        border-radius: 999px;

        box-shadow: none;
    }

    body.nyala-p03-active
    .nyala-floating-v14__inner {
        display: block;

        padding: 0;

        border: 0;
        border-radius: 999px;

        background: transparent;

        box-shadow: none;
    }

    body.nyala-p03-active
    .nyala-floating-v14__consultation,
    body.nyala-p03-active
    .nyala-floating-v14__divider {
        display: none !important;
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;

        width: 100%;
        min-width: 245px;

        min-height: 66px;

        padding: 13px 20px;

        border: 2px solid var(--nyala-fi-deep-yellow);
        border-radius: 999px;

        background: linear-gradient(
            135deg,
            #F3CD56 0%,
            #F8D96F 50%,
            #D7A816 100%
        );

        color: var(--nyala-fi-navy);

        cursor: pointer;

        box-shadow:
            0 12px 28px rgba(23,37,57,.24),
            0 5px 16px rgba(215,168,22,.22),
            inset 0 2px 0 rgba(255,255,255,.55);

        transition:
            transform .2s ease,
            box-shadow .2s ease,
            filter .2s ease;
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment:hover {
        transform: translateY(-3px);

        filter: brightness(1.04);

        box-shadow:
            0 15px 35px rgba(23,37,57,.28),
            0 7px 22px rgba(215,168,22,.35),
            inset 0 2px 0 rgba(255,255,255,.65);
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment-copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment-copy strong {
        font-size: 16px;
        line-height: 1.2;
        font-weight: 800;
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment-copy small {
        font-size: 10px;
        line-height: 1.4;
        font-weight: 550;
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    body.nyala-p03-active
    .nyala-floating-v14__arrow {
        font-size: 25px;
        line-height: 1;
        flex-shrink: 0;
    }
}

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

@media (min-width: 768px) and (max-width: 1023px) {

    body.nyala-p03-active
    .nyala-floating-v14 {
        right: 16px !important;
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment {
        min-width: 215px;
        min-height: 60px;
        padding: 11px 15px;
        gap: 9px;
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment-copy strong {
        font-size: 14px;
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment-copy small {
        font-size: 9px;
    }
}

/* ==================================================
   MOBILE BOTTOM PANEL
   ================================================== */

@media (max-width: 767px) {

    body.nyala-p03-active
    .nyala-floating-v14 {
        position: fixed !important;

        left: 50% !important;
        right: auto !important;
        top: auto !important;

        bottom: max(
            10px,
            env(safe-area-inset-bottom)
        ) !important;

        transform: translateX(-50%) !important;

        width: calc(100% - 20px) !important;

        z-index: 900;

        padding: 5px;

        border-radius: 26px;

        background: linear-gradient(
            145deg,
            rgba(255,255,255,.95),
            rgba(255,255,255,.45)
        );

        box-shadow:
            0 15px 38px rgba(23,37,57,.28);
    }

    body.nyala-p03-active
    .nyala-floating-v14__inner {
        display: flex;
        align-items: center;
        gap: 9px;

        padding: 8px;

        border-radius: 22px;

        background: linear-gradient(
            135deg,
            #172539,
            #0E1B2D
        );

        border: 1px solid rgba(243,205,86,.3);
    }

    body.nyala-p03-active
    .nyala-floating-v14__consultation {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;

        flex: 0 0 100px;

        min-height: 48px;

        color: #fff;

        font-size: 11px;
        font-weight: 650;
        line-height: 1.3;

        text-decoration: none;
    }

    body.nyala-p03-active
    .nyala-floating-v14__consultation svg {
        width: 19px;
        height: 19px;
        flex-shrink: 0;
    }

    body.nyala-p03-active
    .nyala-floating-v14__divider {
        display: block;

        width: 1px;
        height: 35px;

        flex-shrink: 0;

        background: rgba(255,255,255,.25);
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 7px;

        flex: 1;
        min-width: 0;
        min-height: 56px;

        padding: 8px 11px;

        border: 0;
        border-radius: 999px;

        background: linear-gradient(
            135deg,
            #F3CD56,
            #D7A816
        );

        color: #172539;

        cursor: pointer;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.7),
            0 5px 15px rgba(215,168,22,.2);
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment-icon {
        display: flex;
        flex-shrink: 0;
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment-icon svg {
        width: 21px;
        height: 21px;
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment-copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        min-width: 0;
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment-copy strong {
        font-size: 12px;
        font-weight: 800;
        line-height: 1.2;
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment-copy small {
        font-size: 9px;
        line-height: 1.3;
    }

    body.nyala-p03-active
    .nyala-floating-v14__arrow {
        font-size: 20px;
        flex-shrink: 0;
    }

    body.nyala-p03-active {
        padding-bottom: 105px;
    }
}

/* ==================================================
   SMALL MOBILE 320PX
   ================================================== */

@media (max-width: 359px) {

    body.nyala-p03-active
    .nyala-floating-v14__inner {
        gap: 6px;
        padding: 7px;
    }

    body.nyala-p03-active
    .nyala-floating-v14__consultation {
        flex-basis: 80px;
        font-size: 10px;
    }

    body.nyala-p03-active
    .nyala-floating-v14__consultation svg {
        display: none;
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment {
        padding: 8px;
        gap: 5px;
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment-copy strong {
        font-size: 11px;
    }

    body.nyala-p03-active
    .nyala-floating-v14__investment-copy small {
        font-size: 8px;
    }
}

/* ==================================================
   POPUP LAYER
   ================================================== */

body.nyala-p03-active
.nyala-investment-v3__overlay {
    z-index: 1900 !important;
}

body.nyala-p03-active
.nyala-investment-v3__panel {
    z-index: 1901 !important;
}

/* ==================================================
   ACCESSIBILITY
   ================================================== */

body.nyala-p03-active
.nyala-floating-v14 a:focus-visible,
body.nyala-p03-active
.nyala-floating-v14 button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    body.nyala-p03-active
    .nyala-floating-v14__investment {
        transition: none;
    }
}

/* =====================================================
   NYALA P03 — HIDE STANDALONE FLOATING CONSULTATION V1.0

   Scope: Single Experience only.
   Mobile bottom panel remains unchanged.
   ===================================================== */

body.single-experience .nyala-floating-consultation,
body.single-experience .nyala-consultation-floating,
body.single-experience [data-nyala-floating-consultation] {
    display: none !important;
}






/* =====================================================
   NYALA P03 — FLOATING INVESTMENT POSITION V1.7

   Verified selector: .nyala-floating-v14
   Desktop: Bottom Right
   Tablet & Mobile: Unchanged
   ===================================================== */

@media (min-width: 1024px) {

    body.nyala-p03-active .nyala-floating-v14 {

        position: fixed !important;

        top: auto !important;
        left: auto !important;

        right: 24px !important;
        bottom: 24px !important;

        transform: none !important;
        margin: 0 !important;

        z-index: 900 !important;
    }

}

/* END NYALA P03 FLOATING INVESTMENT POSITION V1.7 */


/* NYALA P03 POPUP ESTIMATE FIX V1.1 START */

/*
 * Single Experience Desktop
 * Overlay dan panel berada di atas Global Header.
 * Panel putih diposisikan di bawah area header.
 */

@media (min-width: 1024px) {

    body.nyala-p03-active
    .nyala-investment-v3__overlay {

        position: fixed !important;
        inset: 0 !important;

        z-index: 2147483000 !important;
    }

    body.nyala-p03-active
    .nyala-investment-v3__panel {

        position: fixed !important;

        top: 88px !important;
        left: 50% !important;

        transform: translateX(-50%) !important;

        max-height: calc(100dvh - 112px) !important;

        overflow-y: auto !important;
        overscroll-behavior: contain;

        box-sizing: border-box;

        z-index: 2147483001 !important;
    }

}

/* NYALA P03 POPUP ESTIMATE FIX V1.1 END */


/* NYALA P03 FLOATING TABLET RIGHT V1.0 START */

@media (min-width: 768px) and (max-width: 1023px) {

    body.nyala-p03-active .nyala-floating-v14 {
        position: fixed !important;

        top: auto !important;
        left: auto !important;

        right: 24px !important;
        bottom: 24px !important;

        transform: none !important;
        margin: 0 !important;

        z-index: 1800;
    }

}

/* NYALA P03 FLOATING TABLET RIGHT V1.0 END */
