.qrsis-destek-page {
    min-height: calc(100vh - 96px);
    padding: 16px 12px 86px;
    background: #eef6f8;
}

.qrsis-destek-float {
    position: fixed;
    right: 18px;
    bottom: 96px;
    z-index: 3040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    color: #fff;
    background: #0f9fb2;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(15, 56, 75, .22);
    cursor: grab;
    touch-action: none;
    transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.qrsis-destek-float i {
    font-size: 25px;
    line-height: 1;
}

.qrsis-destek-float:hover,
.qrsis-destek-float:focus {
    color: #fff;
    background: #0a8798;
    outline: 0;
    transform: translateY(-1px);
}

.qrsis-destek-float.is-dragging {
    cursor: grabbing;
    transition: none;
}

body.qrsis-destek-modal-open .qrsis-destek-float {
    opacity: 0;
    pointer-events: none;
    transform: scale(.86);
}

.qrsis-destek-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3020;
    background: rgba(15, 23, 42, .34);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

body.qrsis-destek-modal-open .qrsis-destek-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.qrsis-destek-modal {
    position: fixed;
    left: 50%;
    bottom: 82px;
    z-index: 3030;
    width: min(620px, calc(100vw - 24px));
    height: min(760px, calc(100vh - 126px));
    max-height: calc(100vh - 126px);
    display: flex;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px) scale(.98);
    transition: opacity .2s ease, transform .2s ease;
}

.qrsis-destek-modal.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}

body.qrsis-destek-modal-open {
    overflow: hidden;
}

.qrsis-destek-widget {
    display: flex;
    flex-direction: column;
    width: min(100%, 430px);
    min-height: min(640px, calc(100vh - 190px));
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cce4ec;
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(15, 56, 75, .16);
}

.qrsis-destek-modal .qrsis-destek-widget {
    width: 100%;
    min-height: 0;
    height: 100%;
    border-radius: 20px;
}

.qrsis-destek-shell {
    width: min(100%, 430px);
    min-height: min(640px, calc(100vh - 190px));
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cce4ec;
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(15, 56, 75, .16);
}

.qrsis-destek-shell .qrsis-destek-header {
    padding: 16px;
    color: #fff;
    background: #0f9fb2;
}

.qrsis-destek-shell .qrsis-destek-header p,
.qrsis-destek-shell .qrsis-destek-status,
.qrsis-destek-shell .qrsis-destek-languages,
.qrsis-destek-shell .qrsis-destek-panel h2 {
    display: none;
}

.qrsis-destek-shell .qrsis-destek-body {
    display: flex;
    min-height: min(540px, calc(100vh - 270px));
    flex-direction: column;
}

.qrsis-destek-shell .qrsis-destek-panel {
    padding: 14px 16px 0;
    background: #f7fcfd;
    border: 0;
}

.qrsis-destek-shell .qrsis-destek-option {
    display: inline-flex;
    width: auto;
    margin: 0 7px 8px 0;
    border-radius: 999px;
}

.qrsis-destek-shell .qrsis-destek-chat {
    flex: 1;
    min-height: 0;
}

.qrsis-destek-widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    padding: 14px 16px;
    color: #fff;
    background: #0f9fb2;
}

.qrsis-destek-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 12px;
}

.qrsis-destek-back:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
}

.qrsis-destek-modal-close {
    color: #fff;
    background: #be123c;
    border-color: #be123c;
    box-shadow: 0 8px 18px rgba(159, 18, 57, .22);
}

.qrsis-destek-modal-close i {
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    -webkit-text-stroke: 1px #fff;
}

.qrsis-destek-modal-close:hover,
.qrsis-destek-modal-close:focus {
    color: #fff;
    background: #9f1239;
    border-color: #9f1239;
}

.qrsis-destek-title {
    min-width: 0;
}

.qrsis-destek-title h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
}

.qrsis-destek-title span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    font-size: 13px;
    color: rgba(255,255,255,.86);
}

.qrsis-destek-title span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d9e4eb;
}

.qrsis-destek-title span.is-online::before {
    background: #25d36b;
}

.qrsis-destek-thread {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
}

.qrsis-destek-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 18px;
    background: linear-gradient(180deg, #f7fcfd 0%, #fff 42%, #f8fbfc 100%);
}

.destek-msg {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    margin-bottom: 12px;
}

.destek-msg.is-me {
    justify-content: flex-end;
}

.destek-msg__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: #0f9fb2;
    background: #e5f8fb;
    border-radius: 50%;
}

.destek-msg.is-me .destek-msg__avatar {
    display: none;
}

.destek-msg__bubble {
    max-width: min(82%, 420px);
    padding: 11px 13px;
    color: #17304a;
    background: #fff;
    border: 1px solid #dbeaf0;
    border-radius: 16px 16px 16px 5px;
    box-shadow: 0 8px 20px rgba(15, 56, 75, .08);
}

.destek-msg.is-me .destek-msg__bubble {
    color: #fff;
    background: #0f9fb2;
    border-color: #0f9fb2;
    border-radius: 16px 16px 5px 16px;
}

.destek-msg.is-bot .destek-msg__bubble {
    background: #eefcff;
    border-color: #c8edf4;
}

.destek-msg__meta {
    margin-bottom: 5px;
    font-size: 11px;
    opacity: .68;
}

.destek-msg__translation {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(23, 48, 74, .13);
    font-size: 14px;
    opacity: .86;
}

.destek-msg.is-me .destek-msg__translation {
    border-top-color: rgba(255,255,255,.28);
}

.qrsis-destek-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 14px 43px;
}

.qrsis-destek-quick.is-sub {
    margin-top: 8px;
}

.qrsis-destek-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 9px 12px;
    color: #0a7483;
    font-weight: 800;
    background: #fff;
    border: 1px solid #bfe5ec;
    border-radius: 999px;
    box-shadow: 0 7px 15px rgba(15, 56, 75, .08);
}

.qrsis-destek-option:hover,
.qrsis-destek-option:focus {
    color: #fff;
    background: #0f9fb2;
    border-color: #0f9fb2;
}

.qrsis-destek-option.is-muted {
    color: #52677a;
    background: #f7fbfc;
    border-color: #d8e8ee;
}

.qrsis-destek-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 8px;
    flex: 0 0 auto;
    padding: 12px 14px;
    border-top: 1px solid #dbeaf0;
    background: #fff;
}

.qrsis-destek-compose textarea,
.qrsis-destek-compose button {
    min-height: 44px;
    border: 1px solid #c8dfe8;
    font: inherit;
}

.qrsis-destek-compose textarea {
    width: 100%;
    min-width: 0;
    resize: none;
    height: 44px;
    max-height: 132px;
    padding: 11px 14px;
    line-height: 1.35;
    overflow-y: hidden;
    border-radius: 18px;
}

.qrsis-destek-compose textarea.is-scrollable {
    overflow-y: auto;
}

.qrsis-destek-compose button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    color: #fff;
    background: #0f9fb2;
    border-color: #0f9fb2;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(15, 159, 178, .24);
}

.qrsis-destek-compose button:disabled {
    opacity: .68;
    cursor: wait;
}

@media (max-width: 760px) {
    .qrsis-destek-page {
        padding: 14px 10px 78px;
    }

    .qrsis-destek-widget {
        min-height: calc(100vh - 180px);
        border-radius: 14px;
    }

    .qrsis-destek-float {
        right: 16px;
        bottom: 92px;
        width: 56px;
        height: 56px;
    }

    .qrsis-destek-modal {
        left: 8px;
        right: 8px;
        bottom: 76px;
        width: auto;
        height: calc(100vh - 96px);
        max-height: calc(100vh - 96px);
        transform: translateY(18px) scale(.98);
    }

    .qrsis-destek-modal.is-open {
        transform: translateY(0) scale(1);
    }

    .qrsis-destek-modal .qrsis-destek-widget {
        border-radius: 18px;
    }

    .destek-msg__bubble {
        max-width: 82%;
    }

    .qrsis-destek-quick {
        margin-left: 0;
    }
}
