/* ROYALCAFE_PUBLIC_LIVE_CHAT_CSS_START */

.rc-live-chat,
.rc-live-chat *,
.rc-live-chat *::before,
.rc-live-chat *::after {
    box-sizing: border-box;
}

.rc-live-chat {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 8500;
    font-family:
        Inter,
        Montserrat,
        Arial,
        sans-serif;
}

.rc-chat-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 6px solid #ffffff;
    border-radius: 999px;
    background:
        linear-gradient(
            145deg,
            #d8b66c,
            #9f772f
        );
    color: #120d08;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, .3);
    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.rc-chat-launcher:hover {
    transform: translateY(-2px);
    box-shadow:
        0 22px 52px rgba(0, 0, 0, .36);
}

.rc-chat-launcher svg {
    width: 28px;
    height: 28px;
}

.rc-chat-unread {
    position: absolute;
    top: -7px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: #c52d28;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.rc-chat-panel {
    position: fixed;
    right: 24px;
    bottom: 102px;
    display: flex;
    flex-direction: column;
    width: min(390px, calc(100vw - 32px));
    height: min(620px, calc(100dvh - 130px));
    overflow: hidden;
    border: 1px solid rgba(201, 174, 121, .46);
    border-radius: 26px;
    background: #ffffff;
    color: #1b140e;
    box-shadow:
        0 32px 90px rgba(0, 0, 0, .36);
    transform-origin: right bottom;
    animation: rcChatAppear .22s ease both;
}

.rc-chat-panel[hidden] {
    display: none !important;
}

.rc-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 16px 18px;
    background:
        linear-gradient(
            135deg,
            #171009,
            #2c1d10
        );
    color: #ffffff;
}

.rc-chat-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rc-chat-logo {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(229, 199, 136, .45);
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            #d7b46a,
            #9f752e
        );
    color: #171009;
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 900;
}

.rc-chat-brand div {
    display: grid;
    gap: 3px;
}

.rc-chat-brand strong {
    font-size: 15px;
}

.rc-chat-brand div span {
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
}

.rc-chat-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.rc-chat-welcome {
    padding: 30px 28px;
    overflow-y: auto;
}

.rc-chat-eyebrow {
    color: #9a742d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.rc-chat-welcome h2 {
    margin: 9px 0 10px;
    color: #17110c;
    font-family: Georgia, serif;
    font-size: 30px;
    line-height: 1.1;
}

.rc-chat-welcome > p {
    margin: 0 0 23px;
    color: #766b61;
    font-size: 13px;
    line-height: 1.65;
}

.rc-chat-welcome form {
    display: grid;
    gap: 16px;
}

.rc-chat-welcome label {
    display: grid;
    gap: 7px;
}

.rc-chat-welcome label > span {
    color: #64584d;
    font-size: 11px;
    font-weight: 700;
}

.rc-chat-welcome input {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid #ded4c7;
    border-radius: 14px;
    outline: none;
    background: #fbf8f3;
    color: #1a140f;
    font: inherit;
    font-size: 13px;
}

.rc-chat-welcome input:focus {
    border-color: #b99043;
    box-shadow:
        0 0 0 3px rgba(185, 144, 67, .13);
}

.rc-chat-primary {
    min-height: 50px;
    margin-top: 2px;
    border: 0;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            #171009,
            #2e1e10
        );
    color: #f1d994;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.rc-chat-error {
    margin: 0;
    color: #c32d2d;
    font-size: 11px;
    line-height: 1.45;
}

.rc-chat-room {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
}

.rc-chat-room[hidden] {
    display: none !important;
}

.rc-chat-room-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 66px;
    padding: 13px 18px;
    border-bottom: 1px solid #eee7de;
    background: #fffdf9;
}

.rc-chat-room-status > div {
    display: grid;
    gap: 3px;
}

.rc-chat-room-status strong {
    font-size: 13px;
}

.rc-chat-room-status span {
    color: #887b6d;
    font-size: 10px;
}

.rc-chat-online-dot {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #43a566;
    box-shadow:
        0 0 0 4px rgba(67, 165, 102, .12);
}

.rc-chat-messages {
    flex: 1;
    min-height: 0;
    padding: 18px;
    overflow-y: auto;
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fbf8f3
        );
}

.rc-chat-empty {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 35px 20px;
    color: #96897b;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.rc-chat-message {
    display: flex;
    margin-bottom: 13px;
}

.rc-chat-message.is-visitor {
    justify-content: flex-end;
}

.rc-chat-bubble {
    max-width: 82%;
    padding: 11px 13px 8px;
    border-radius: 16px 16px 16px 5px;
    background: #f0ebe5;
    color: #251c15;
    box-shadow:
        0 5px 16px rgba(33, 23, 15, .06);
}

.rc-chat-message.is-visitor .rc-chat-bubble {
    border-radius: 16px 16px 5px 16px;
    background:
        linear-gradient(
            135deg,
            #1b120b,
            #352313
        );
    color: #ffffff;
}

.rc-chat-bubble p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.55;
}

.rc-chat-bubble time {
    display: block;
    margin-top: 5px;
    color: #8d8073;
    font-size: 9px;
    text-align: right;
}

.rc-chat-message.is-visitor time {
    color: rgba(255, 255, 255, .62);
}

.rc-chat-room-error {
    padding: 8px 16px 0;
    background: #ffffff;
}

.rc-chat-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 10px;
    padding: 13px;
    border-top: 1px solid #e9e1d7;
    background: #ffffff;
}

.rc-chat-compose textarea {
    width: 100%;
    min-height: 48px;
    max-height: 110px;
    resize: none;
    padding: 13px 15px;
    border: 1px solid #e2d9ce;
    border-radius: 16px;
    outline: none;
    background: #f7f4ef;
    color: #1e1711;
    font: inherit;
    font-size: 12px;
    line-height: 1.4;
}

.rc-chat-compose textarea:focus {
    border-color: #b58b3d;
}

.rc-chat-compose button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            #d5b166,
            #a47931
        );
    color: #191109;
    cursor: pointer;
}

.rc-chat-compose button svg {
    width: 22px;
    height: 22px;
}

.rc-chat-compose textarea:disabled,
.rc-chat-compose button:disabled {
    cursor: not-allowed;
    opacity: .55;
}





@keyframes rcChatAppear {
    from {
        opacity: 0;
        transform:
            translateY(12px)
            scale(.97);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

@media (max-width: 640px) {
    .rc-live-chat {
        right: 14px;
        bottom: 14px;
    }

    .rc-chat-launcher {
        right: 14px;
        bottom: 14px;
        width: 58px;
        height: 58px;
    }

    .rc-chat-panel {
        right: 10px;
        bottom: 84px;
        width: calc(100vw - 20px);
        height: min(650px, calc(100dvh - 100px));
        border-radius: 22px;
    }


    .rc-chat-welcome {
        padding: 25px 21px;
    }
}

/* ROYALCAFE_PUBLIC_LIVE_CHAT_CSS_END */



/* ROYALCAFE_LIVE_CHAT_POSITION_CONSISTENT_START */

/*
 * Satu posisi untuk seluruh halaman.
 *
 * Desktop/laptop:
 * - Tombol pepet kanan bawah.
 *
 * Mobile:
 * - Tombol naik di atas sticky order bar.
 */

@media (min-width: 768px) {
    .rc-chat-launcher {
        right: 14px !important;
        bottom: 14px !important;
    }

    .rc-chat-panel {
        right: 14px !important;
        bottom: 88px !important;
    }
}

@media (max-width: 767px) {
    .rc-live-chat {
        right: 0 !important;
        bottom: 0 !important;
    }

    .rc-chat-launcher {
        right: 10px !important;
        bottom: 96px !important;
    }

    .rc-chat-panel {
        right: 10px !important;
        bottom: 166px !important;
        width: calc(100vw - 20px) !important;
        height: min(
            600px,
            calc(100dvh - 186px)
        ) !important;
        max-height: calc(
            100dvh - 186px
        ) !important;
    }
}

/* ROYALCAFE_LIVE_CHAT_POSITION_CONSISTENT_END */


/* ROYALCAFE_CHAT_PAY_PAGE_HIGHER_START */

/*
 * Homepage tetap menggunakan posisi mobile 96px.
 *
 * Halaman checkout dan pembayaran memakai sticky bar
 * yang lebih tinggi, sehingga tombol dinaikkan 26px.
 */

@media (max-width: 767px) {
    body.pay-page .rc-chat-launcher {
        right: 10px !important;
        bottom: 122px !important;
    }

    body.pay-page .rc-chat-panel {
        right: 10px !important;
        bottom: 192px !important;
        width: calc(100vw - 20px) !important;
        height: min(
            550px,
            calc(100dvh - 212px)
        ) !important;
        max-height: calc(
            100dvh - 212px
        ) !important;
    }
}

/* ROYALCAFE_CHAT_PAY_PAGE_HIGHER_END */

/*
 * ROYALCAFE_LIVE_CHAT_PROFILE_IMAGE_START
 */
.rc-chat-profile-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: inherit;
}
/* ROYALCAFE_LIVE_CHAT_PROFILE_IMAGE_END */



/* ROYALCAFE_PUBLIC_CHAT_TEMPLATE_CSS_V1_START */

.rc-chat-template-fields {
    display: grid;
    min-width: 0;
    gap: 9px;
}

.rc-chat-template-label {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.rc-chat-template-label > span {
    color: #685b4e;
    font-size: 10px;
    font-weight: 800;
}

.rc-chat-compose select,
.rc-chat-compose input[name="order_code"] {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #e2d9ce;
    border-radius: 14px;
    outline: none;
    background: #f7f4ef;
    color: #1e1711;
    font: inherit;
    font-size: 11px;
    line-height: 1.35;
}

.rc-chat-compose select {
    cursor: pointer;
}

.rc-chat-compose select:focus,
.rc-chat-compose input[name="order_code"]:focus {
    border-color: #b58b3d;
    box-shadow:
        0 0 0 3px rgba(181, 139, 61, .12);
}

.rc-chat-order-code[hidden] {
    display: none !important;
}

.rc-chat-template-note {
    margin: 0;
    color: #918477;
    font-size: 9px;
    line-height: 1.45;
}

.rc-chat-compose button[type="submit"] {
    align-self: end;
}

.rc-chat-compose select:disabled,
.rc-chat-compose input[name="order_code"]:disabled {
    cursor: not-allowed;
    opacity: .55;
}

@media (max-width: 640px) {
    .rc-chat-compose {
        gap: 8px;
        padding: 11px;
    }

    .rc-chat-compose select,
    .rc-chat-compose input[name="order_code"] {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 10px;
    }
}

/* ROYALCAFE_PUBLIC_CHAT_TEMPLATE_CSS_V1_END */
