.vtx-cookie-banner,
.vtx-cookie-modal {
  font-family: Inter, Arial, sans-serif;
}

.vtx-cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  display: none;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  color: #fff;
  background: rgba(12, 22, 34, .98);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .3);
}

.vtx-cookie-banner.is-visible {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.vtx-cookie-banner h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
}

.vtx-cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
  line-height: 1.55;
}

.vtx-cookie-banner a {
  color: #6ee7b7;
  font-weight: 700;
}

.vtx-cookie-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.vtx-cookie-button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 6px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.vtx-cookie-button:hover,
.vtx-cookie-button:focus-visible {
  background: rgba(255, 255, 255, .12);
  outline: 3px solid rgba(52, 211, 153, .35);
  outline-offset: 2px;
}

.vtx-cookie-button--primary {
  border-color: #10b981;
  color: #052e24;
  background: #34d399;
}

.vtx-cookie-button--primary:hover,
.vtx-cookie-button--primary:focus-visible {
  background: #6ee7b7;
}

.vtx-cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 15, 25, .68);
}

.vtx-cookie-backdrop.is-visible {
  display: flex;
}

.vtx-cookie-modal {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 24px;
  color: #172033;
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

.vtx-cookie-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.vtx-cookie-modal h2 {
  margin: 0;
  color: #172033;
  font-size: 22px;
  line-height: 1.25;
}

.vtx-cookie-modal > p {
  margin: 0 0 18px;
  color: #516278;
  font-size: 14px;
  line-height: 1.6;
}

.vtx-cookie-close {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #172033;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.vtx-cookie-close:hover,
.vtx-cookie-close:focus-visible {
  border-color: #059669;
  outline: 3px solid rgba(16, 185, 129, .18);
  outline-offset: 2px;
}

.vtx-cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #e2e8f0;
}

.vtx-cookie-category h3 {
  margin: 0 0 4px;
  color: #172033;
  font-size: 15px;
}

.vtx-cookie-category p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.vtx-cookie-status {
  align-self: center;
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}

.vtx-cookie-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
  align-self: center;
}

.vtx-cookie-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.vtx-cookie-switch span {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: #94a3b8;
  transition: background .18s ease;
  cursor: pointer;
}

.vtx-cookie-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .3);
  transition: transform .18s ease;
}

.vtx-cookie-switch input:checked + span {
  background: #059669;
}

.vtx-cookie-switch input:checked + span::after {
  transform: translateX(20px);
}

.vtx-cookie-switch input:focus-visible + span {
  outline: 3px solid rgba(16, 185, 129, .28);
  outline-offset: 2px;
}

.vtx-cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.vtx-cookie-modal .vtx-cookie-button {
  border-color: #94a3b8;
  color: #172033;
}

.vtx-cookie-modal .vtx-cookie-button--primary {
  border-color: #059669;
  color: #fff;
  background: #059669;
}

body.vtx-cookie-open .vtx-support-root,
body.vtx-cookie-open .vtx-support-stub {
  display: none !important;
}

@media (max-width: 760px) {
  .vtx-cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 15px;
  }

  .vtx-cookie-banner.is-visible {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .vtx-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .vtx-cookie-actions .vtx-cookie-button--primary {
    grid-column: 1 / -1;
  }

  .vtx-cookie-modal {
    padding: 18px;
  }

  .vtx-cookie-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .vtx-cookie-actions {
    grid-template-columns: 1fr;
  }

  .vtx-cookie-actions .vtx-cookie-button--primary {
    grid-column: auto;
  }
}
