.bv-chatbot,
.bv-chatbot * {
  box-sizing: border-box;
}

.bv-chatbot {
  position: fixed;
  z-index: 9999;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  font-family: Arial, Helvetica, sans-serif;
}

.bv-chatbot__launcher {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border: 0;
  border-radius: 999px;
  background: #1d668e;
  box-shadow: 0 10px 26px rgba(18, 65, 94, 0.28);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
}

.bv-chatbot__launcher:hover,
.bv-chatbot__launcher:focus-visible {
  background: #153d5b;
}

.bv-chatbot__launcher:focus-visible,
.bv-chatbot__close:focus-visible,
.bv-chatbot__option:focus-visible,
.bv-chatbot__footer-link:focus-visible,
.bv-chatbot__email-link:focus-visible {
  outline: 3px solid rgba(29, 102, 142, 0.32);
  outline-offset: 3px;
}

.bv-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  display: flex;
  overflow: hidden;
  width: min(390px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 96px));
  flex-direction: column;
  border: 1px solid #cfe0e8;
  border-radius: 19px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(18, 53, 77, 0.23);
  color: #294656;
}

.bv-chatbot__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 19px 16px;
  border-bottom: 1px solid #dce8ed;
  background: linear-gradient(135deg, #edf7fa 0%, #ffffff 100%);
}

.bv-chatbot__kicker {
  margin: 0 0 4px;
  color: #1d668e;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bv-chatbot__header h2 {
  margin: 0;
  color: #153d5b;
  font-size: 1.12rem;
  line-height: 1.25;
}

.bv-chatbot__close {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #cfe0e8;
  border-radius: 50%;
  background: #ffffff;
  color: #153d5b;
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.bv-chatbot__close:hover {
  border-color: #1d668e;
  background: #f1f8fa;
}

.bv-chatbot__body {
  overflow-y: auto;
  padding: 17px 19px 18px;
  -webkit-overflow-scrolling: touch;
}

.bv-chatbot__breadcrumb {
  overflow: hidden;
  margin: 0 0 14px;
  color: #66808f;
  font-size: 0.77rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bv-chatbot__message {
  color: #294656;
}

.bv-chatbot__message h3 {
  margin: 0 0 9px;
  color: #153d5b;
  font-size: 1.13rem;
  line-height: 1.35;
}

.bv-chatbot__message p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.58;
}

.bv-chatbot__notice {
  margin-top: 14px !important;
  padding: 11px 12px;
  border-left: 4px solid #1d668e;
  border-radius: 0 9px 9px 0;
  background: #f1f8fa;
  color: #426172;
  font-size: 0.83rem !important;
}

.bv-chatbot__resource-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.bv-chatbot__resource-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #d4e2e8;
  border-radius: 9px;
  background: #f9fcfd;
  color: #1d668e;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.bv-chatbot__resource-link:hover,
.bv-chatbot__resource-link:focus-visible {
  border-color: #1d668e;
  background: #edf7fa;
  color: #153d5b;
}

.bv-chatbot__options {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.bv-chatbot__option {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #c9dce5;
  border-radius: 10px;
  background: #ffffff;
  color: #153d5b;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
}

.bv-chatbot__option:hover,
.bv-chatbot__option:focus-visible {
  border-color: #1d668e;
  background: #f1f8fa;
}

.bv-chatbot__option-icon {
  flex: 0 0 auto;
  color: #1d668e;
  font-size: 0.84rem;
}

.bv-chatbot__footer {
  padding: 13px 19px 16px;
  border-top: 1px solid #dce8ed;
  background: #fbfdfe;
}

.bv-chatbot__navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bv-chatbot__footer-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #426172;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.bv-chatbot__footer-link:hover {
  color: #153d5b;
}

.bv-chatbot__email-link {
  display: inline-flex;
  width: 100%;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  padding: 8px 11px;
  border: 1px solid #1d668e;
  border-radius: 9px;
  background: #1d668e;
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
}

.bv-chatbot__email-link:hover,
.bv-chatbot__email-link:focus-visible {
  border-color: #153d5b;
  background: #153d5b;
}

.bv-chatbot [hidden] {
  display: none !important;
}

@media (max-width: 575px) {
  .bv-chatbot {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .bv-chatbot__launcher {
    min-height: 46px;
    padding: 10px 15px;
  }

  .bv-chatbot__panel {
    right: 0;
    bottom: 58px;
    width: min(100vw - 24px, 390px);
    max-height: min(680px, calc(100vh - 82px));
    border-radius: 16px;
  }

  .bv-chatbot__header,
  .bv-chatbot__body,
  .bv-chatbot__footer {
    padding-right: 15px;
    padding-left: 15px;
  }
}
/* Chatbot footer uyumluluğu ve erişilebilir navigasyon */

.bv-chatbot .bv-chatbot__footer-link,
.bv-chatbot .bv-chatbot__text-button {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid #c9dce5;
  border-radius: 9px;
  background: #ffffff !important;
  color: #153d5b !important;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none !important;
}

.bv-chatbot .bv-chatbot__footer-link:hover,
.bv-chatbot .bv-chatbot__footer-link:focus-visible,
.bv-chatbot .bv-chatbot__text-button:hover,
.bv-chatbot .bv-chatbot__text-button:focus-visible {
  border-color: #1d668e;
  background: #edf7fa !important;
  color: #153d5b !important;
}

.bv-chatbot .bv-chatbot__email-link,
.bv-chatbot .bv-chatbot__text-link {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid #1d668e;
  border-radius: 9px;
  background: #1d668e !important;
  color: #ffffff !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
}

.bv-chatbot .bv-chatbot__email-link:hover,
.bv-chatbot .bv-chatbot__email-link:focus-visible,
.bv-chatbot .bv-chatbot__text-link:hover,
.bv-chatbot .bv-chatbot__text-link:focus-visible {
  border-color: #153d5b;
  background: #153d5b !important;
  color: #ffffff !important;
}

.bv-chatbot .bv-chatbot__footer-link:focus-visible,
.bv-chatbot .bv-chatbot__text-button:focus-visible,
.bv-chatbot .bv-chatbot__email-link:focus-visible,
.bv-chatbot .bv-chatbot__text-link:focus-visible {
  outline: 3px solid rgba(29, 102, 142, 0.32);
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .bv-chatbot .bv-chatbot__navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .bv-chatbot .bv-chatbot__footer-link,
  .bv-chatbot .bv-chatbot__text-button {
    width: 100%;
  }

  .bv-chatbot .bv-chatbot__close {
    width: 44px;
    height: 44px;
  }
}
/* Chatbot footer'ı her ekranda tamamen görünür tutar */

.bv-chatbot .bv-chatbot__panel {
  display: flex;
  height: min(680px, calc(100dvh - 88px));
  max-height: calc(100dvh - 24px);
  flex-direction: column;
}

.bv-chatbot .bv-chatbot__body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bv-chatbot .bv-chatbot__footer {
  flex: 0 0 auto;
}

@media (max-width: 575px) {
  .bv-chatbot .bv-chatbot__panel {
    height: min(680px, calc(100dvh - 82px));
  }
}
/* Ana ekranda daha fazla konu görünmesi için alanı seçeneklere ayırır. */

.bv-chatbot.is-home .bv-chatbot__body {
  padding-top: 14px;
  padding-bottom: 14px;
}

.bv-chatbot.is-home .bv-chatbot__breadcrumb {
  margin-bottom: 10px;
}

.bv-chatbot.is-home .bv-chatbot__message h3 {
  margin-bottom: 6px;
}

.bv-chatbot.is-home .bv-chatbot__notice {
  margin-top: 10px !important;
  padding: 9px 11px;
  font-size: 0.81rem !important;
  line-height: 1.45;
}

.bv-chatbot.is-home .bv-chatbot__options {
  gap: 8px;
  margin-top: 13px;
}

.bv-chatbot.is-home .bv-chatbot__option {
  min-height: 44px;
  padding-top: 9px;
  padding-bottom: 9px;
}

/* Chatbot her zaman sayfa katmanlarının üzerinde kalır. */
.bv-chatbot {
  z-index: 2147483647;
}

/* JavaScript paneli kapattığında hidden niteliği her koşulda uygulanır. */
.bv-chatbot .bv-chatbot__panel[hidden] {
  display: none !important;
}
