/* bursverenler.org yardım asistanı: yalnızca .bv-chatbot kapsamını etkiler. */
.bv-chatbot,
.bv-chatbot * { box-sizing: border-box; }

.bv-chatbot {
  --bv-chat-navy: #003366;
  --bv-chat-blue: #1c99d5;
  --bv-chat-ink: #294656;
  --bv-chat-muted: #607988;
  --bv-chat-line: #d8e5eb;
  --bv-chat-surface: #ffffff;
  --bv-chat-soft: #f3f8fb;
  position: fixed;
  z-index: 2147483000;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  font-family: Arial, Helvetica, sans-serif;
  color: var(--bv-chat-ink);
}

.bv-chatbot__launcher {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 11px 18px 11px 13px;
  border: 0;
  border-radius: 999px;
  background: var(--bv-chat-blue);
  color: #fff;
  box-shadow: 0 11px 28px rgba(0, 51, 102, .25);
  cursor: pointer;
  font: 700 15px/1 Arial, Helvetica, sans-serif;
}
.bv-chatbot__launcher:hover { background: #117fb7; }
.bv-chatbot__launcher:focus-visible,
.bv-chatbot button:focus-visible,
.bv-chatbot a:focus-visible { outline: 3px solid rgba(28, 153, 213, .35); outline-offset: 3px; }
.bv-chatbot__launcher-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); }
.bv-chatbot__launcher svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.bv-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  display: flex;
  width: min(390px, calc(100vw - 32px));
  max-height: min(670px, calc(100vh - 108px - env(safe-area-inset-top)));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bv-chat-line);
  border-radius: 18px;
  background: var(--bv-chat-surface);
  box-shadow: 0 18px 52px rgba(0, 39, 75, .24);
}
.bv-chatbot__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 18px; background: var(--bv-chat-navy); color: #fff; }
.bv-chatbot__eyebrow { margin: 0 0 3px; color: #9ddcf7; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.bv-chatbot__header h2 { margin: 0; color: #fff; font-size: 18px; line-height: 1.2; }
.bv-chatbot__close { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.13); color: #fff; cursor: pointer; }
.bv-chatbot__close:hover { background: rgba(255,255,255,.22); }
.bv-chatbot__close svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bv-chatbot__body { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 18px; overscroll-behavior: contain; }
.bv-chatbot__breadcrumb { min-height: 16px; margin: 0 0 9px; color: var(--bv-chat-muted); font-size: 12px; line-height: 1.35; }
.bv-chatbot__message { padding: 15px; border: 1px solid var(--bv-chat-line); border-left: 4px solid var(--bv-chat-blue); border-radius: 12px; background: var(--bv-chat-soft); color: var(--bv-chat-ink); font-size: 14px; line-height: 1.55; }
.bv-chatbot__message p { margin: 0 0 9px; }
.bv-chatbot__message p:last-child { margin-bottom: 0; }
.bv-chatbot__message strong { color: var(--bv-chat-navy); }
.bv-chatbot__security { margin-top: 12px !important; padding-top: 11px; border-top: 1px solid #d7e4ea; color: #4b6574; font-size: 12px; }
.bv-chatbot__links { display: grid; gap: 8px; margin-top: 12px; }
.bv-chatbot__help-link { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--bv-chat-line); border-radius: 10px; background: #fff; color: var(--bv-chat-navy); font-size: 13px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.bv-chatbot__help-link::after { content: '›'; flex: 0 0 auto; color: var(--bv-chat-blue); font-size: 21px; line-height: 1; }
.bv-chatbot__help-link:hover { border-color: var(--bv-chat-blue); background: #f6fbfe; }
.bv-chatbot__options { display: grid; gap: 9px; margin-top: 16px; }
.bv-chatbot__option { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #bcd8e6; border-radius: 10px; background: #fff; color: var(--bv-chat-navy); cursor: pointer; font: 700 14px/1.3 Arial, Helvetica, sans-serif; text-align: left; }
.bv-chatbot__option:hover { border-color: var(--bv-chat-blue); background: #eaf7fc; }
.bv-chatbot__option--primary { border-color: var(--bv-chat-blue); background: var(--bv-chat-blue); color: #fff; }
.bv-chatbot__option--primary:hover { background: #117fb7; }
.bv-chatbot__footer { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bv-chat-line); background: #fff; }
.bv-chatbot__text-button, .bv-chatbot__text-link { padding: 2px 0; border: 0; background: transparent; color: #176f9c; cursor: pointer; font: 700 12px/1.35 Arial, Helvetica, sans-serif; text-decoration: none; }
.bv-chatbot__text-button:hover, .bv-chatbot__text-link:hover { color: var(--bv-chat-navy); text-decoration: underline; }

@media (max-width: 575px) {
  .bv-chatbot { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .bv-chatbot__panel { right: 0; bottom: 62px; width: min(100vw - 24px, 430px); max-height: min(700px, calc(100dvh - 92px - env(safe-area-inset-top))); border-radius: 16px; }
  .bv-chatbot__body { padding: 15px; }
  .bv-chatbot__launcher { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) { .bv-chatbot *, .bv-chatbot *::before, .bv-chatbot *::after { scroll-behavior: auto !important; transition: none !important; } }
