
/* ============================================
   RASABET CANLI DESTEK
   Musteri Widget - Tam CSS
   ============================================ */

#rb-support {
    --rb-navy: #091c30;
    --rb-panel: #0e2943;
    --rb-blue: #198cda;
    --rb-border: #25445e;
    --rb-text: #eff8ff;
    --rb-muted: #a5bfd2;

    font-family: Inter, Arial, Helvetica, sans-serif;
    position: relative;
    z-index: 2147482000;
    color: var(--rb-text);
}

#rb-support * {
    box-sizing: border-box;
}

#rb-support [hidden] {
    display: none !important;
}

#rb-support button,
#rb-support textarea {
    font-family: inherit;
}

#rb-support button {
    cursor: pointer;
}

/* DESTEK ACMA BUTONU */

#rb-support .rb-launch {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: 1px solid #3e8fca;
    border-radius: 50%;
    background: #0b2d4c;
    box-shadow:
        0 8px 32px #0015289c,
        0 0 0 4px #0d46704d;
    z-index: 2147482001;
}

#rb-support .rb-launch img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#rb-support .rb-dot {
    position: absolute;
    width: 13px;
    height: 13px;
    bottom: 3px;
    right: 2px;
    border-radius: 50%;
    background: #2bd785;
    border: 2px solid #08223c;
}

/* ANA PENCERE */

#rb-support .rb-window {
    position: fixed;
    bottom: 101px;
    right: 22px;
    width: min(390px, calc(100vw - 24px));
    height: min(650px, calc(100dvh - 126px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 19px;
    border: 1px solid #37658a;
    background: var(--rb-navy);
    box-shadow: 0 22px 65px #0009;
    z-index: 2147482002;
}

/* BASLIK */

#rb-support .rb-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    background: linear-gradient(110deg, #124e7d, #0b2c4c 75%);
    border-bottom: 1px solid #35658b;
    flex: none;
}

#rb-support .rb-head-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #0b3254;
    border: 1px solid #326d9a;
    flex: none;
}

#rb-support .rb-head-logo img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

#rb-support .rb-head-copy {
    flex: 1;
    min-width: 0;
}

#rb-support .rb-head-copy strong {
    display: block;
    font-size: 15px;
    font-weight: 750;
}

#rb-support .rb-head-copy small {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 10px;
    color: #c6ddeb;
}

#rb-support .rb-online {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #31d98e;
    flex: none;
}

#rb-support .rb-close {
    background: #ffffff12;
    color: #e9f7ff;
    border: 1px solid #ffffff25;
    border-radius: 9px;
    width: 30px;
    height: 30px;
    line-height: 1;
    font-size: 22px;
}

/* KARSILAMA */

#rb-support .rb-welcome {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding: 16px 15px;
    scrollbar-width: thin;
    scrollbar-color: #3c6281 transparent;
}

#rb-support .rb-greet {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 13px;
}

#rb-support .rb-greet > b {
    font-size: 19px;
    font-weight: 800;
}

#rb-support .rb-greet > strong {
    font-size: 15px;
    font-weight: 650;
}

#rb-support .rb-greet > small {
    font-size: 11.5px;
    color: var(--rb-muted);
    line-height: 1.45;
}

/* GIF BANNER */

#rb-support .rb-banner-wrap {
    width: 100%;
    aspect-ratio: 720 / 236;
    overflow: hidden;
    border-radius: 12px;
    background: #103958;
    margin-bottom: 16px;
    border: 1px solid #315878;
}

#rb-support .rb-banner {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* YARDIM MENUSU */

#rb-support .rb-label {
    font-size: 11px;
    color: #b5d1e5;
    font-weight: 700;
    margin: 0 0 9px;
}

#rb-support .rb-quick {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 1px solid #294c67;
    border-radius: 13px;
    background: #102b44;
}

#rb-support .rb-quick button {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 58px;
    padding: 10px 12px;
    text-align: left;
    color: #fff;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #294761;
    border-radius: 0;
    transition: background .18s ease;
}

#rb-support .rb-quick button:last-child {
    border-bottom: 0;
}

#rb-support .rb-quick button:hover {
    background: #194462;
}

#rb-support .rb-quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: #1b4b70;
    color: #9bd9ff;
    font-size: 17px;
    flex: none;
}

#rb-support .rb-quick-text {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

#rb-support .rb-quick-text b {
    font-size: 12.5px;
    font-weight: 700;
}

#rb-support .rb-quick-text small {
    font-size: 10px;
    color: #a8c1d5;
    line-height: 1.3;
}

#rb-support .rb-arrow {
    margin-left: auto;
    font-size: 20px;
    color: #85bfe3;
    flex: none;
}

/* CANLI TEMSILCI */

#rb-support .rb-agent {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    background: linear-gradient(100deg, #1777bc, #115c99);
    border: 1px solid #4098d0;
    color: #fff;
    border-radius: 12px;
    padding: 11px 12px;
    margin-top: 11px;
}

#rb-support .rb-agent-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    border-radius: 9px;
    background: #ffffff22;
    font-size: 19px;
    flex: none;
}

#rb-support .rb-agent > span:nth-child(2) {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

#rb-support .rb-agent b {
    font-size: 12px;
}

#rb-support .rb-agent small {
    font-size: 10px;
    color: #dbf0ff;
}

/* ============================================
   SOHBET EKRANI
   ============================================ */

#rb-support .rb-chat {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    background: #0a1d30;
}

#rb-support .rb-chatbar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border-bottom: 1px solid #29485f;
    background: #0e2b46;
    flex: none;
}

#rb-support .rb-back {
    border: 0;
    background: #ffffff12;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 24px;
    line-height: 1;
}

#rb-support .rb-topic {
    font-size: 12px;
    font-weight: 700;
    flex: 1;
}

#rb-support .rb-status {
    font-size: 10px;
    color: #a7d6f4;
    background: #1c4667;
    border-radius: 15px;
    padding: 6px 9px;
    white-space: nowrap;
}

/* SOHBET GIF */

#rb-support .rb-promo {
    height: 65px;
    flex: none;
    overflow: hidden;
    border-bottom: 1px solid #26475f;
}

#rb-support .rb-promo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MESAJLAR */

#rb-support .rb-messages {
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 17px 13px;
    scrollbar-width: thin;
    scrollbar-color: #456780 transparent;
    background:
        radial-gradient(circle at 20% 15%, #14345055, transparent 45%),
        #091b2d;
}

/* BOT VE TEMSILCI MESAJLARI */

#rb-support .rb-msg {
    align-self: flex-start;
    max-width: 85%;
    min-width: 65px;
    padding: 10px 12px 7px;
    border-radius: 13px 13px 13px 4px;
    background: #1b3852;
    border: 1px solid #31516c;
    color: #eff8ff;
    font-size: 12.5px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    box-shadow: 0 3px 10px #00000014;
}

/* MUSTERI MESAJLARI */

#rb-support .rb-msg.mine {
    align-self: flex-end;
    background: linear-gradient(135deg, #167ac2, #1264a7);
    border: 1px solid #2489ce;
    border-radius: 13px 13px 4px 13px;
    color: #fff;
}

/* MESAJ SAATI */

#rb-support .rb-msg time {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    line-height: 1.2;
    color: #a8c0d2;
    text-align: right;
    white-space: nowrap;
}

#rb-support .rb-msg.mine time {
    color: #d0eaff;
}

/* HATA MESAJI */

#rb-support .rb-error {
    color: #ffd0d0;
    background: #632c3b;
    padding: 9px 12px;
    font-size: 11px;
    flex: none;
}

/* ============================================
   MESAJ YAZMA ALANI
   ============================================ */

#rb-support .rb-form {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    padding: 12px;
    border-top: 1px solid #29485f;
    background: #0b243b;
    flex: none;
}

#rb-support .rb-form textarea {
    display: block;
    min-width: 0;
    flex: 1;
    min-height: 42px;
    max-height: 110px;
    resize: none;
    border: 1px solid #31526e;
    border-radius: 12px;
    padding: 12px;
    background: #15334c;
    color: #fff;
    outline: none;
    font-size: 12px;
    line-height: 1.4;
    transition: border-color .2s;
}

#rb-support .rb-form textarea::placeholder {
    color: #9bb4c8;
}

#rb-support .rb-form textarea:focus {
    border-color: #4cb4f1;
}

#rb-support .rb-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(135deg, #239de6, #1375bd);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex: none;
    font-size: 19px;
    transition: filter .2s;
}

#rb-support .rb-form button:hover {
    filter: brightness(1.12);
}

#rb-support .rb-form button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ============================================
   MOBIL
   ============================================ */

@media (max-width: 520px) {

    #rb-support .rb-launch {
        width: 56px;
        height: 56px;
        bottom: 15px;
        right: 13px;
    }

    #rb-support .rb-window {
        bottom: 80px;
        right: 8px;
        width: calc(100vw - 16px);
        height: min(610px, calc(100dvh - 92px));
        border-radius: 16px;
    }

    #rb-support .rb-welcome {
        padding: 14px 13px;
    }

    #rb-support .rb-quick button {
        min-height: 56px;
        padding: 9px 12px;
    }

    #rb-support .rb-quick-icon {
        width: 33px;
        height: 33px;
    }

    #rb-support .rb-msg {
        max-width: 88%;
    }

    #rb-support .rb-form {
        padding: 10px;
    }
}

@media (max-height: 610px) {

    #rb-support .rb-window {
        bottom: 8px;
        height: calc(100dvh - 16px);
    }
}

/* Restore clean chat layout; banner only on landing */
#rb-support .rb-promo{display:none!important}
#rb-support .rb-messages{display:flex;flex-direction:column;gap:11px}
#rb-support .rb-msg{flex-shrink:0;white-space:pre-wrap}
#rb-support .rb-sender{font-size:10px;font-weight:700;color:#8ed0ff;margin-bottom:5px}
#rb-support .rb-choices{display:flex;flex-wrap:wrap;gap:7px;align-self:flex-start;max-width:100%;padding-bottom:6px}
#rb-support .rb-choice{font-size:11px;color:#eaf6ff;background:#153d60;border:1px solid #3277a4;border-radius:10px;padding:9px 12px;text-align:left;line-height:1.3;transition:background .15s}
#rb-support .rb-choice:hover{background:#1b5985}
#rb-support .rb-chatbar{min-height:49px}
#rb-support .rb-msg.mine{margin-left:auto}

/* Ziyaretci bilgileri */
#rb-support .rb-visitor-form{display:flex;flex-direction:column;gap:12px;padding:8px 0 14px}
#rb-support .rb-visitor-form strong{font-size:16px;color:#fff}
#rb-support .rb-visitor-form small{font-size:12px;color:#a9c8df}
#rb-support .rb-visitor-form label{display:flex;flex-direction:column;gap:6px;color:#cfe4f4;font-size:12px;font-weight:600}
#rb-support .rb-visitor-form input{height:43px;border:1px solid #345a77;border-radius:10px;background:#102e48;color:#fff;padding:0 12px;font:13px Inter,Arial,sans-serif;outline:none;width:100%}
#rb-support .rb-visitor-form input:focus{border-color:#3ea8e9}
#rb-support .rb-visitor-form button{border:0;border-radius:10px;background:#168bd4;color:white;padding:12px;font-size:13px;font-weight:700}
#rb-support .rb-profile-error{font-size:11px;color:#ffbdbd;margin:0}

#rb-support .rb-sound{border:0;background:transparent;color:#fff;font-size:17px;cursor:pointer;padding:7px;flex-shrink:0}#rb-support .rb-sound[aria-pressed="false"]{opacity:.55}

/* v43 - Kompakt 2x2 destek menusu ve Telegram kanali */
#rb-support .rb-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible;border:0;border-radius:0;background:transparent}
#rb-support .rb-quick button,#rb-support .rb-quick button:last-child{min-height:87px;padding:11px 9px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;border:1px solid #294c67;border-radius:12px;background:linear-gradient(145deg,#173b59,#102c46);transition:background .18s,border-color .18s}
#rb-support .rb-quick button:hover{background:#1c4b70;border-color:#4d9dd2}
#rb-support .rb-quick-icon{width:30px;height:30px;border-radius:9px;font-size:16px}
#rb-support .rb-quick-text{gap:3px}
#rb-support .rb-quick-text b{font-size:12px}
#rb-support .rb-quick-text small{font-size:10px;line-height:1.2}
#rb-support .rb-quick button .rb-arrow{display:none}
#rb-support .rb-telegram{margin-top:10px;display:flex;align-items:center;gap:10px;min-height:55px;padding:9px 11px;border:1px solid #337eac;border-radius:11px;background:#113750;color:#eff9ff;text-decoration:none}
#rb-support .rb-telegram:hover{background:#194766;border-color:#51b0e3}
#rb-support .rb-telegram-icon{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border-radius:9px;background:#258dc2;color:white;font-size:19px}
#rb-support .rb-telegram>span:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
#rb-support .rb-telegram b{font-size:12px}
#rb-support .rb-telegram small{font-size:10px;color:#acd0e7}
#rb-support .rb-agent{margin-top:9px;min-height:55px}
@media(max-width:390px){#rb-support .rb-quick button{min-height:80px;padding:9px 8px}#rb-support .rb-quick{gap:7px}#rb-support .rb-telegram b{font-size:11px}}

/* v44 - compact viewport-fit welcome + SVG icon system */
#rb-support [hidden]{display:none!important}
#rb-support .rb-window{height:min(565px,calc(100dvh - 96px));max-height:calc(100dvh - 12px)}
#rb-support .rb-head{padding:8px 12px;gap:8px}
#rb-support .rb-head-logo{width:34px;height:34px;border-radius:9px}
#rb-support .rb-head-logo img{width:30px;height:30px}
#rb-support .rb-head-copy strong{font-size:13px}
#rb-support .rb-head-copy small{margin-top:2px;font-size:9px}
#rb-support .rb-sound svg{width:17px;height:17px;display:block}
#rb-support .rb-welcome{padding:10px 12px;overflow-y:auto;overscroll-behavior:contain}
#rb-support .rb-greet{gap:2px;margin-bottom:7px}
#rb-support .rb-greet>b{font-size:15px}
#rb-support .rb-greet>strong{font-size:12px}
#rb-support .rb-greet>small{font-size:10px;line-height:1.25}
#rb-support .rb-banner-wrap{height:75px;aspect-ratio:auto;margin-bottom:9px;border-radius:9px}
#rb-support .rb-banner{object-fit:contain}
#rb-support .rb-label{font-size:10px;margin-bottom:6px}
#rb-support .rb-quick{gap:6px}
#rb-support .rb-quick button,#rb-support .rb-quick button:last-child{min-height:62px;padding:8px;gap:6px;flex-direction:row;align-items:center;border-radius:10px}
#rb-support .rb-quick-icon{width:31px;height:31px;flex-shrink:0;display:grid;place-items:center;color:#89d5ff;background:#1c4e70;border-radius:9px}
#rb-support .rb-quick-icon svg{width:19px;height:19px}
#rb-support .rb-quick-text{min-width:0;gap:2px}
#rb-support .rb-quick-text b{font-size:11px}
#rb-support .rb-quick-text small{font-size:9px;line-height:1.2}
#rb-support .rb-telegram{margin-top:7px;min-height:46px;padding:6px 9px;gap:8px;border-radius:9px}
#rb-support .rb-telegram-icon{width:30px;height:30px;flex-shrink:0;display:grid;place-items:center}
#rb-support .rb-telegram-icon svg{width:18px;height:18px}
#rb-support .rb-telegram b{font-size:11px}
#rb-support .rb-telegram small{font-size:9px}
#rb-support .rb-agent{margin-top:7px;min-height:46px;padding:6px 9px;gap:8px;border-radius:9px}
#rb-support .rb-agent-icon{width:30px;height:30px;display:grid;place-items:center}
#rb-support .rb-agent-icon svg{width:18px;height:18px}
#rb-support .rb-agent b{font-size:11px}
#rb-support .rb-agent small{font-size:9px}
#rb-support .rb-form button svg{width:19px;height:19px}
#rb-support .rb-chatbar{min-height:40px;padding:5px 10px}
#rb-support .rb-messages{padding:10px;gap:8px}
#rb-support .rb-form{padding:7px 9px}
#rb-support .rb-visitor-form{gap:9px;padding:6px 0}
#rb-support .rb-visitor-form input{height:38px}
@media(max-width:520px){#rb-support .rb-window{bottom:72px;right:8px;width:calc(100vw - 16px);height:min(565px,calc(100dvh - 80px))}#rb-support .rb-welcome{padding:9px 11px}#rb-support .rb-quick button,#rb-support .rb-quick button:last-child{min-height:60px;padding:7px}}
@media(max-height:620px){#rb-support .rb-window{bottom:6px;height:calc(100dvh - 12px)}#rb-support .rb-banner-wrap{height:56px;margin-bottom:6px}#rb-support .rb-greet>small{display:none}#rb-support .rb-quick button,#rb-support .rb-quick button:last-child{min-height:54px}#rb-support .rb-head{padding:6px 10px}#rb-support .rb-telegram,#rb-support .rb-agent{min-height:40px}}

/* Sabit oranlı kampanya alanı: panel yüksekliğini büyütmez */
#rb-support .rb-banner-wrap{height:clamp(76px,13vh,108px)!important;overflow:hidden!important;flex-shrink:0!important}
#rb-support .rb-banner-wrap img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important}
#rb-support .rb-chat .rb-promo{display:none!important}

/* 2026-11-07: banner tam genişlik düzeltmesi. Önceki !important contain kuralını geçersiz kılar. */
#rb-support .rb-banner-wrap {
  width:100% !important; height:auto !important; aspect-ratio: 3.2 / 1 !important;
  max-height:none !important; padding:0 !important; overflow:hidden !important;
  display:block !important; flex-shrink:0 !important; box-sizing:border-box !important;
}
#rb-support .rb-banner-wrap img, #rb-support img.rb-banner,
#rb-support .rb-banner-wrap img[data-rotating-banner] {
  display:block !important; width:100% !important; height:100% !important;
  max-width:none !important; max-height:none !important;
  object-fit:fill !important; object-position:center !important;
}
@media (max-height:620px) {
  #rb-support .rb-banner-wrap {aspect-ratio:3.2 / 1 !important; height:auto !important;}
}

/* Unified premium line icons and responsive chat sizing */
#rb-support .rb-quick-icon svg,#rb-support .rb-agent-icon svg,#rb-support .rb-telegram-icon svg {width:20px;height:20px;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px rgba(0,0,0,.12));}
#rb-support .rb-quick-icon,#rb-support .rb-agent-icon,#rb-support .rb-telegram-icon{border:1px solid rgba(137,213,255,.17);background:linear-gradient(145deg,#225a7e,#164362);}
#rb-support .rb-quick button:hover,#rb-support .rb-quick button:focus-visible{border-color:#58b8ed;background:#194362;}
#rb-support .rb-chat{min-height:0;flex:1;overflow:hidden;}
#rb-support .rb-messages{min-height:0;overflow-y:auto;}
#rb-support .rb-banner-wrap{aspect-ratio: 719 / 357 !important;height:auto!important;max-height:118px!important;}
#rb-support .rb-banner-wrap img{object-fit:fill!important;}

/* Premium vector icon refinement — visual only; does not change chat interactions */
#rb-support .rb-quick-icon,#rb-support .rb-agent-icon,#rb-support .rb-telegram-icon{width:34px;height:34px;min-width:34px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(155deg,#245b7c 0%,#123c5c 100%);border:1px solid rgba(147,214,255,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 2px 7px rgba(0,0,0,.10)}
#rb-support .rb-quick-icon svg,#rb-support .rb-agent-icon svg,#rb-support .rb-telegram-icon svg{width:23px;height:23px;display:block;filter:none}
#rb-support .rb-telegram-icon{background:linear-gradient(150deg,#279ed8,#1469a7)}
#rb-support .rb-agent-icon{background:linear-gradient(150deg,#328fd0,#1765a8)}
#rb-support .rb-telegram .rb-arrow svg{width:15px;height:15px;display:block}
#rb-support .rb-quick button:hover .rb-quick-icon,#rb-support .rb-agent:hover .rb-agent-icon{border-color:rgba(170,232,255,.5)}
@media(max-width:480px){#rb-support .rb-quick-icon,#rb-support .rb-agent-icon,#rb-support .rb-telegram-icon{width:31px;height:31px;min-width:31px;border-radius:9px}#rb-support .rb-quick-icon svg,#rb-support .rb-agent-icon svg,#rb-support .rb-telegram-icon svg{width:21px;height:21px}}

/* Attachment controls */
#rb-support .rb-attach{display:grid;place-items:center;flex:0 0 32px;cursor:pointer;color:#91d5ff}#rb-support .rb-attach svg{width:21px;height:21px}#rb-support .rb-upload-preview{padding:6px 12px;font-size:11px;color:#b8dcf6;overflow-wrap:anywhere}#rb-support .rb-file-link{display:flex;flex-direction:column;gap:5px;max-width:100%;font-size:12px;color:inherit;text-decoration:underline;overflow-wrap:anywhere}#rb-support .rb-file-link img{display:block;max-width:220px;max-height:180px;object-fit:contain;border-radius:8px}
