.pms-chat-launcher {
    position: fixed;
    top: 50%;
    right: 1.5rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    width: 238px;
    min-height: 104px;
    padding: 0.9rem 1.05rem;
    border: 1px solid #e9bdc8;
    border-left: 5px solid #c81036;
    border-radius: 18px;
    background: linear-gradient(145deg, #fde9ee 0%, #f7d6df 100%);
    color: #25191c;
    font: 700 0.98rem/1.2 Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(61, 20, 30, 0.24);
    transform: translateY(-50%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pms-chat-launcher:hover,
.pms-chat-launcher:focus-visible {
    transform: translateY(calc(-50% - 2px));
    box-shadow: 0 12px 30px rgba(61, 20, 30, 0.28);
}

.pms-chat-launcher:focus-visible,
.pms-chat-close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.pms-chat-launcher__icon {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #c81036;
    color: #fff;
    font-size: 0.92rem;
    letter-spacing: -0.03em;
}

.pms-chat-launcher__label {
    display: block;
    flex: 1 1 auto;
    color: #25191c;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

.pms-chat-minimize {
    position: fixed;
    top: calc(50% - 63px);
    right: 1rem;
    z-index: 1000;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #9f1239;
    color: #fff;
    font: 700 1.1rem/1 Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(61, 20, 30, 0.28);
}

.pms-chat-minimize:hover,
.pms-chat-minimize:focus-visible {
    background: #7f102f;
    outline: 3px solid rgba(200, 16, 54, 0.24);
    outline-offset: 2px;
}

.pms-chat-launcher.is-minimized {
    width: 60px;
    min-height: 60px;
    padding: 0;
    justify-content: center;
    border-left-width: 1px;
    border-radius: 50%;
}

.pms-chat-launcher.is-minimized .pms-chat-launcher__label {
    display: none;
}

.pms-chat-launcher.is-minimized .pms-chat-launcher__icon {
    width: 44px;
    height: 44px;
}

.pms-chat-overlay[hidden] {
    display: none;
}

.pms-chat-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(23, 17, 19, 0.58);
    backdrop-filter: blur(3px);
}

.pms-chat-dialog {
    position: relative;
    width: min(880px, 100%);
    height: min(860px, calc(100vh - 2.5rem));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.pms-chat-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #f7f3f4;
}

.pms-chat-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #b20f34;
    color: #fff;
    font: 400 1.8rem/1 Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

body.pms-chat-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .pms-chat-launcher {
        top: 50%;
        right: 0.7rem;
        width: 205px;
        min-width: 0;
        min-height: 90px;
        padding: 0.7rem 0.8rem;
        border-radius: 15px;
    }

    .pms-chat-launcher__icon {
        width: 31px;
        height: 31px;
        color: #fff;
        background: #c81036;
    }

    .pms-chat-launcher__label {
        font-size: 0.86rem;
    }

    .pms-chat-minimize {
        top: calc(50% - 56px);
        right: 0.35rem;
        width: 26px;
        height: 26px;
    }

    .pms-chat-launcher.is-minimized {
        width: 52px;
        min-height: 52px;
        padding: 0;
    }

    .pms-chat-launcher.is-minimized .pms-chat-launcher__icon {
        width: 40px;
        height: 40px;
    }

    .pms-chat-overlay {
        padding: 0;
    }

    .pms-chat-dialog {
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pms-chat-launcher {
        transition: none;
    }
}
