
.mr-chat {
    --mr-navy: #071d34;
    --mr-navy-2: #0a2b4d;
    --mr-navy-3: #0e345d;
    --mr-blue: #005ea8;
    --mr-red: #d71920;
    --mr-red-2: #ef3340;
    --mr-red-soft: #ffb7bd;
    --mr-line: #d8e2ee;
    --mr-soft: #f6f9fd;
    --mr-text: #071d34;
    --mr-muted: #64748b;

    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99998;
    font-family: Arial, Helvetica, sans-serif;
}

.mr-launcher {
    position: relative;
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px 8px 8px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    background:
        radial-gradient(circle at 92% 0%, rgba(255,255,255,.16), transparent 28%),
        linear-gradient(135deg, #071d34, #005ea8);
    box-shadow: 0 20px 55px rgba(7,29,52,.24);
}

.mr-launcher-avatar {
    width: 46px;
    height: 46px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: #fff;
    border: 2px solid rgba(255,255,255,.82);
}

.mr-launcher-avatar img,
.mr-head-avatar img,
.mr-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
}

.mr-launcher-copy {
    display: grid;
    text-align: left;
}

.mr-launcher-copy strong {
    color: #fff;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -.02em;
}

.mr-launcher-copy small {
    margin-top: 4px;
    color: rgba(255,255,255,.72);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mr-launcher-dot {
    position: absolute;
    right: 11px;
    top: 11px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #16c76a;
    box-shadow: 0 0 0 4px rgba(22,199,106,.17);
}

.mr-panel {
    width: min(440px, calc(100vw - 22px));
    height: min(670px, calc(100vh - 62px));
    display: none;
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(216,226,238,.95);
    box-shadow: 0 34px 95px rgba(7,29,52,.28);
}

.mr-panel.is-open {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

/* Premium compact header */
.mr-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 18px 16px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 0%, rgba(255,255,255,.16), transparent 34%),
        radial-gradient(circle at 0% 0%, rgba(0,94,168,.28), transparent 35%),
        linear-gradient(135deg, #06182e 0%, #071d34 52%, #0a2b4d 100%);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.mr-head::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}

.mr-head-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.mr-head-avatar {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: #fff;
    border: 3px solid rgba(255,255,255,.92);
    box-shadow:
        0 16px 36px rgba(0,0,0,.22),
        0 0 0 6px rgba(255,255,255,.06);
}

.mr-head-copy {
    min-width: 0;
}

.mr-head-copy > span {
    display: block;
    color: var(--mr-red-soft);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mr-head-copy strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 32px;
    line-height: .95;
    letter-spacing: -.052em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mr-head-copy small {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: rgba(255,255,255,.76);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.mr-head-copy small i {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 999px;
    background: #18c76c;
    box-shadow: 0 0 0 5px rgba(24,199,108,.14);
}

.mr-head-copy small em {
    color: rgba(255,255,255,.58);
    font-style: normal;
    font-weight: 850;
}

.mr-head-copy small em::before {
    content: "•";
    margin-right: 7px;
    color: rgba(255,255,255,.46);
}

.mr-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mr-head-actions a,
.mr-head-actions button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,.17);
    background: rgba(255,255,255,.10);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.mr-head-actions a:hover,
.mr-head-actions button:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.26);
}

.mr-head-actions span {
    color: #fff;
    font-size: 19px;
    line-height: 1;
}

.mr-head-call {
    background: linear-gradient(180deg, #ef3340, #c80f19) !important;
    border-color: rgba(255,255,255,.22) !important;
    box-shadow:
        0 14px 30px rgba(215,25,32,.24),
        inset 0 1px 0 rgba(255,255,255,.16) !important;
}

.mr-head-full span {
    font-size: 16px;
}

#mr-close span {
    font-size: 31px;
    transform: translateY(-1px);
}

/* Beautiful top action row */
.mr-tools {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    padding: 10px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-bottom: 1px solid var(--mr-line);
}

.mr-tool {
    min-height: 52px;
    min-width: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    padding: 7px 5px;
    border-radius: 18px;
    border: 1px solid #d5e1ef;
    background:
        radial-gradient(circle at 100% 0%, rgba(0,94,168,.04), transparent 32%),
        #fff;
    color: var(--mr-text);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(7,29,52,.04);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.mr-tool:hover {
    transform: translateY(-1px);
    border-color: #b9cde3;
    box-shadow: 0 12px 24px rgba(7,29,52,.07);
}

.mr-tool b {
    color: var(--mr-red);
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
}

.mr-tool span {
    max-width: 100%;
    color: #0a2b4d;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mr-tool.is-primary {
    background:
        radial-gradient(circle at 100% 0%, rgba(255,255,255,.13), transparent 32%),
        linear-gradient(135deg, #071d34, #0a2b4d);
    border-color: #071d34;
    box-shadow:
        0 12px 26px rgba(7,29,52,.14),
        inset 0 -3px 0 rgba(215,25,32,.95);
}

.mr-tool.is-primary b,
.mr-tool.is-primary span {
    color: #fff;
}

.mr-body {
    min-height: 0;
    overflow: auto;
    padding: 13px;
    background:
        radial-gradient(circle at top left, rgba(0,94,168,.07), transparent 30%),
        #f4f7fb;
}

.mr-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 12px;
}

.mr-msg-row.user {
    justify-content: flex-end;
}

.mr-msg-row.user .mr-msg-avatar {
    display: none;
}

.mr-msg-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d8e2ee;
}

.mr-msg-stack {
    min-width: 0;
    max-width: 86%;
}

.mr-msg-row.user .mr-msg-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.mr-msg-meta {
    margin: 0 0 5px 2px;
    color: #005ea8;
    font-size: 11px;
    font-weight: 850;
}

.mr-bubble {
    padding: 12px 13px;
    background:
        radial-gradient(circle at 100% 0%, rgba(0,94,168,.05), transparent 30%),
        #fff;
    color: #24364c;
    border: 1px solid #c8d8eb;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(15,23,42,.05);
    line-height: 1.45;
    font-size: 14px;
    white-space: pre-wrap;
}

.mr-msg-row.bot:first-child .mr-bubble::before {
    content: "How can I help?";
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin: 0 0 8px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #005ea8;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mr-msg-row.user .mr-bubble {
    background: var(--mr-blue);
    color: #fff;
    border-color: var(--mr-blue);
}

.mr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.mr-actions a,
.mr-actions button {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #bfd0e6;
    background: #fff;
    color: var(--mr-blue);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.mr-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border-top: 1px solid var(--mr-line);
}

.mr-form input[name="message"] {
    width: 100%;
    min-height: 46px;
    border: 1px solid #bfd0e6;
    border-radius: 15px;
    padding: 0 14px;
    color: #0f172a;
    outline: none;
    font-size: 14px;
}

.mr-form input[name="message"]:focus {
    border-color: var(--mr-blue);
    box-shadow: 0 0 0 4px rgba(0,94,168,.11);
}

.mr-form button {
    width: 48px;
    min-height: 46px;
    border: 0;
    border-radius: 15px;
    background: var(--mr-red);
    color: #fff;
    cursor: pointer;
}

.mr-form button span {
    display: block;
    color: #fff;
    font-size: 18px;
    transform: translateX(1px);
}

.mr-foot {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px 10px;
    background: #fff;
    color: #6f8095;
    font-size: 11px;
}

.mr-foot a {
    color: var(--mr-blue);
    font-weight: 850;
}

@media (max-width: 560px) {
    .mr-chat {
        right: 10px;
        bottom: 10px;
    }

    .mr-panel {
        width: calc(100vw - 20px);
        height: calc(100vh - 54px);
        border-radius: 20px;
    }

    .mr-head {
        padding: 13px;
    }

    .mr-head-avatar {
        width: 52px;
        height: 52px;
    }

    .mr-head-copy strong {
        font-size: 24px;
    }

    .mr-head-copy > span {
        font-size: 9px;
        max-width: 190px;
    }

    .mr-head-copy small {
        font-size: 11px;
    }

    .mr-head-copy small em {
        display: none;
    }

    .mr-head-actions {
        gap: 6px;
    }

    .mr-head-actions a,
    .mr-head-actions button {
        width: 36px;
        height: 36px;
        border-radius: 13px;
    }

    .mr-tools {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px;
        scrollbar-width: none;
    }

    .mr-tools::-webkit-scrollbar {
        display: none;
    }

    .mr-tool {
        min-width: 74px;
        min-height: 47px;
        flex: 0 0 auto;
        border-radius: 16px;
    }

    .mr-tool span {
        font-size: 10px;
    }

    .mr-body {
        padding: 10px;
    }

    .mr-msg-stack {
        max-width: 90%;
    }

    .mr-bubble {
        font-size: 13px;
    }
}




/* MISS_ROOVET_FINAL_CLEAN_HEADER_START */

/*
    Miss Roovet Final Clean Header
    Design direction: polished concierge, less bulky, more chat space.
*/

.mr-panel {
    width: min(430px, calc(100vw - 22px)) !important;
    height: min(650px, calc(100vh - 58px)) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(193, 209, 228, .95) !important;
    background: #fff !important;
    box-shadow:
        0 30px 80px rgba(7, 29, 52, .26),
        0 0 0 1px rgba(255,255,255,.55) !important;
}

/* Smaller, cleaner top header */
.mr-head {
    min-height: 104px !important;
    padding: 14px 14px 12px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    background:
        radial-gradient(circle at 95% 0%, rgba(255,255,255,.13), transparent 30%),
        linear-gradient(135deg, #06182e 0%, #071d34 56%, #092b4d 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.mr-head::before,
.mr-head::after {
    display: none !important;
}

.mr-head-main {
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 11px !important;
    align-items: center !important;
}

.mr-head-avatar {
    width: 54px !important;
    height: 54px !important;
    border-radius: 999px !important;
    border: 2px solid rgba(255,255,255,.92) !important;
    box-shadow:
        0 12px 28px rgba(0,0,0,.22),
        0 0 0 5px rgba(255,255,255,.055) !important;
}

.mr-head-avatar img {
    transform: scale(1.045) !important;
}

.mr-head-copy {
    min-width: 0 !important;
}

.mr-head-copy > span {
    display: block !important;
    color: #ffb7bd !important;
    font-size: 9px !important;
    font-weight: 950 !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mr-head-copy strong {
    display: block !important;
    margin-top: 4px !important;
    color: #fff !important;
    font-size: 27px !important;
    line-height: .98 !important;
    letter-spacing: -.052em !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mr-head-copy small {
    width: fit-content !important;
    max-width: 100% !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin-top: 7px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.075) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    color: rgba(255,255,255,.72) !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mr-head-copy small i {
    width: 8px !important;
    height: 8px !important;
    flex: 0 0 auto !important;
    background: #16c76a !important;
    box-shadow: 0 0 0 4px rgba(22,199,106,.13) !important;
}

.mr-head-copy small em {
    display: none !important;
}

/* Header action buttons: less blocky, more refined */
.mr-head-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.mr-head-actions a,
.mr-head-actions button {
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    background: rgba(255,255,255,.085) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.mr-head-actions a:hover,
.mr-head-actions button:hover {
    transform: none !important;
    background: rgba(255,255,255,.15) !important;
    border-color: rgba(255,255,255,.22) !important;
}

.mr-head-call {
    background: #d71920 !important;
    border-color: rgba(255,255,255,.20) !important;
}

.mr-head-call span {
    font-size: 17px !important;
}

.mr-head-full span {
    font-size: 15px !important;
}

#mr-close span {
    font-size: 27px !important;
    transform: translateY(-1px) !important;
}

/* Replace button grid with clean concierge rail */
.mr-tools {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px 9px !important;
    background: #fff !important;
    border-bottom: 1px solid #d8e2ee !important;
    scrollbar-width: none !important;
}

.mr-tools::-webkit-scrollbar {
    display: none !important;
}

.mr-tool {
    min-height: 34px !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid #d5e1ef !important;
    background: #f9fbfe !important;
    color: #071d34 !important;
    box-shadow: none !important;
}

.mr-tool:hover {
    transform: none !important;
    border-color: #b9cde3 !important;
    background: #f2f7fc !important;
    box-shadow: none !important;
}

.mr-tool b {
    width: auto !important;
    height: auto !important;
    display: inline !important;
    place-items: unset !important;
    color: #d71920 !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

.mr-tool span {
    color: #071d34 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.mr-tool.is-primary {
    background: #071d34 !important;
    border-color: #071d34 !important;
    box-shadow: none !important;
}

.mr-tool.is-primary b,
.mr-tool.is-primary span {
    color: #fff !important;
}

/* Save message space */
.mr-body {
    padding: 11px !important;
    background:
        radial-gradient(circle at top left, rgba(0,94,168,.055), transparent 28%),
        #f5f8fc !important;
}

.mr-msg-row {
    gap: 8px !important;
    margin-bottom: 10px !important;
}

.mr-msg-avatar {
    width: 30px !important;
    height: 30px !important;
}

.mr-msg-stack {
    max-width: 88% !important;
}

.mr-msg-meta {
    margin-bottom: 4px !important;
    color: #64748b !important;
    font-size: 10px !important;
}

.mr-bubble {
    padding: 11px 12px !important;
    border-radius: 15px !important;
    color: #24364c !important;
    background: #fff !important;
    border: 1px solid #d8e2ee !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.045) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.mr-msg-row.bot:first-child .mr-bubble {
    background:
        radial-gradient(circle at 100% 0%, rgba(0,94,168,.045), transparent 30%),
        #fff !important;
}

.mr-msg-row.bot:first-child .mr-bubble::before {
    content: "Miss Roovet";
    min-height: 21px;
    display: inline-flex;
    align-items: center;
    margin: 0 0 7px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #005ea8;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.mr-form {
    padding: 9px !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
}

.mr-form input[name="message"] {
    min-height: 42px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
}

.mr-form button {
    width: 44px !important;
    min-height: 42px !important;
    border-radius: 13px !important;
}

.mr-foot {
    min-height: 30px !important;
    padding: 0 11px 8px !important;
    font-size: 10px !important;
}

@media (max-width: 560px) {
    .mr-panel {
        width: calc(100vw - 20px) !important;
        height: calc(100vh - 54px) !important;
        border-radius: 20px !important;
    }

    .mr-head {
        min-height: 92px !important;
        padding: 11px !important;
    }

    .mr-head-main {
        grid-template-columns: 48px minmax(0, 1fr) !important;
        gap: 9px !important;
    }

    .mr-head-avatar {
        width: 48px !important;
        height: 48px !important;
    }

    .mr-head-copy > span {
        max-width: 170px !important;
        font-size: 8px !important;
    }

    .mr-head-copy strong {
        font-size: 23px !important;
    }

    .mr-head-copy small {
        min-height: 22px !important;
        margin-top: 6px !important;
        padding: 0 8px !important;
        font-size: 9px !important;
    }

    .mr-head-actions {
        gap: 5px !important;
    }

    .mr-head-actions a,
    .mr-head-actions button {
        width: 33px !important;
        height: 33px !important;
        border-radius: 11px !important;
    }

    .mr-tools {
        padding: 7px 8px !important;
    }

    .mr-tool {
        min-height: 32px !important;
        padding: 0 9px !important;
    }

    .mr-tool span {
        font-size: 10px !important;
    }

    .mr-tool b {
        font-size: 11px !important;
    }
}
/* MISS_ROOVET_FINAL_CLEAN_HEADER_END */

