.itceb-survey-root {
  position: fixed;
  z-index: 99990;
  font-family: inherit;
  --itceb-primary: #0067B1;
  --itceb-accent: #00AEEF;
  --itceb-desktop-bottom-offset: 96px;
  --itceb-desktop-side-offset: 22px;
  --itceb-mobile-bottom-offset: 86px;
  --itceb-mobile-side-offset: 14px;
  --itceb-panel-max-height: min(78vh, 720px);
  color: #1f2937;
}
.itceb-bottom-right {
  right: var(--itceb-desktop-side-offset) !important;
  bottom: var(--itceb-desktop-bottom-offset) !important;
}
.itceb-bottom-left {
  left: var(--itceb-desktop-side-offset) !important;
  bottom: var(--itceb-desktop-bottom-offset) !important;
}
.itceb-bottom-center {
  left: 50% !important;
  bottom: var(--itceb-desktop-bottom-offset) !important;
  transform: translateX(-50%);
}
.itceb-survey-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--itceb-primary), var(--itceb-accent));
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 68, 128, .26);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .01em;
}
.itceb-tab-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
}
.itceb-survey-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 32px));
  max-height: var(--itceb-panel-max-height, min(78vh, 720px)) !important;
  min-height: 0;
  overflow: hidden !important;
  box-sizing: border-box;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,103,177,.12);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(15,23,42,.26);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.itceb-bottom-left .itceb-survey-panel {
  left: 0;
  right: auto;
  transform-origin: bottom left;
}
.itceb-bottom-center .itceb-survey-panel {
  left: 50%;
  right: auto;
  transform: translate(-50%,14px) scale(.98);
  transform-origin: bottom center;
}
.itceb-survey-root.is-open .itceb-survey-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.itceb-bottom-center.is-open .itceb-survey-panel {
  transform: translate(-50%,0) scale(1);
}
.itceb-survey-head {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 22px 14px;
  background: linear-gradient(180deg,rgba(0,174,239,.12),rgba(255,255,255,0));
}
.itceb-survey-head > div:first-child {
  min-width: 0;
}
.itceb-survey-eyebrow {
  margin: 0 0 5px;
  color: var(--itceb-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}
.itceb-survey-title {
  margin: 0;
  color: #0f172a;
  font-size: 21px;
  line-height: 1.25;
}
.itceb-survey-intro {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}
.itceb-survey-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.itceb-language-row {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  padding: 0 22px 14px;
  border-bottom: 1px solid #eef2f7;
  background: rgba(255,255,255,.98);
}
.itceb-language-row button {
  border: 1px solid #dbe7f3;
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.itceb-language-row button.is-active {
  border-color: var(--itceb-accent);
  background: #e6f6ff;
  color: var(--itceb-primary);
}
.itceb-survey-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden !important;
  box-sizing: border-box;
  padding: 0;
}
.itceb-survey-questions {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  padding: 0 22px;
}
.itceb-survey-questions::-webkit-scrollbar {
  width: 9px;
}
.itceb-survey-questions::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.itceb-survey-questions::-webkit-scrollbar-thumb {
  border: 2px solid #f1f5f9;
  border-radius: 999px;
  background: #9fc8e5;
}
.itceb-question {
  padding: 15px 0;
  border-top: 1px solid #eef2f7;
}
.itceb-question:first-child {
  border-top: 0;
}
.itceb-question-label {
  display: block;
  margin-bottom: 9px;
  color: #172033;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.itceb-required {
  margin-left: 4px;
  color: #e11d48;
}
.itceb-helper {
  margin: 0 0 9px;
  color: #64748b;
  font-size: 12px;
}
.itceb-rating,
.itceb-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.itceb-rating label input,
.itceb-choice label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.itceb-rating span {
  width: 38px;
  height: 34px;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  font-weight: 800;
}
.itceb-choice span {
  display: inline-flex;
  border: 1px solid #dbe7f3;
  border-radius: 999px;
  padding: 8px 11px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  font-size: 13px;
}
.itceb-rating input:checked + span,
.itceb-choice input:checked + span {
  border-color: var(--itceb-primary);
  background: var(--itceb-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,103,177,.22);
}
.itceb-question textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  padding: 11px 13px;
  resize: vertical;
  background: #fff;
  color: #1f2937;
  font: inherit;
}
.itceb-question.has-error .itceb-question-label {
  color: #be123c;
}
.itceb-question.has-error .itceb-rating span,
.itceb-question.has-error textarea,
.itceb-question.has-error .itceb-choice span {
  border-color: #fda4af;
}
.itceb-survey-privacy {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 22px 6px;
  border-top: 1px solid #edf2f7;
  background: #fff;
  color: #64748b;
  font-size: 12px;
}
.itceb-survey-actions {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 22px 22px;
  background: #fff;
}
.itceb-submit {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg,var(--itceb-primary),var(--itceb-accent));
  color: #fff;
  box-shadow: 0 14px 28px rgba(0,103,177,.18);
  cursor: pointer;
  font-weight: 800;
}
.itceb-submit:disabled {
  opacity: .75;
  cursor: wait;
}
.itceb-survey-message {
  margin-top: 13px;
  font-size: 14px;
  font-weight: 700;
}
.itceb-survey-message.is-error {
  color: #be123c;
}
.itceb-survey-message.is-success {
  padding: 18px;
  border-radius: 16px;
  background: #ecfeff;
  color: #075985;
  text-align: center;
}
@media (max-width: 640px) {
  .itceb-bottom-right,
  .itceb-bottom-left,
  .itceb-bottom-center {
    left: var(--itceb-mobile-side-offset) !important;
    right: var(--itceb-mobile-side-offset) !important;
    bottom: var(--itceb-mobile-bottom-offset) !important;
    transform: none;
  }
  .itceb-survey-tab {
    width: 100%;
    justify-content: center;
  }
  .itceb-survey-panel,
  .itceb-bottom-left .itceb-survey-panel,
  .itceb-bottom-center .itceb-survey-panel {
    left: 0;
    right: 0;
    bottom: 58px;
    width: 100%;
    transform: translateY(14px) scale(.98);
    transform-origin: bottom center;
  }
  .itceb-bottom-center.is-open .itceb-survey-panel,
  .itceb-survey-root.is-open .itceb-survey-panel {
    transform: translateY(0) scale(1);
  }
  .itceb-survey-head {
    padding: 18px 18px 12px;
  }
  .itceb-language-row {
    padding: 0 18px 12px;
  }
  .itceb-survey-questions {
    padding: 0 18px;
  }
  .itceb-survey-privacy {
    padding: 10px 18px 6px;
  }
  .itceb-survey-actions {
    padding: 8px 18px 18px;
  }
}
