.vx-consent-root,
.vx-consent-root * {
  box-sizing: border-box;
}

.vx-consent-root[hidden],
.vx-consent-modal[hidden] {
  display: none !important;
}

.vx-consent-root {
  position: relative;
  z-index: 2147483000;
  color: #252525;
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vx-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.vx-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  animation: vxConsentFadeIn 0.3s ease-out forwards;
}

.vx-consent-modal.is-closing .vx-consent-modal__backdrop {
  animation: vxConsentFadeOut 0.25s ease-in forwards;
}

.vx-consent-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-height: 90vh;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: rgba(5, 2, 129, 0.08) 0 4px 8px 0;
  animation: vxConsentSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.vx-consent-modal.is-closing .vx-consent-modal__panel {
  animation: vxConsentSlideDown 0.3s ease-in forwards;
}

.vx-consent-modal__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid #e5e7eb;
}

.vx-consent-modal__brand {
  display: flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eaf1ff;
  color: #020281;
}

.vx-consent-modal__brand svg {
  width: 16px;
  height: 16px;
}

.vx-consent-modal__titlewrap {
  min-width: 0;
  margin-right: auto;
}

.vx-consent-modal h2 {
  margin: 0;
  color: #252525;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.vx-consent-modal__titlewrap p {
  margin: 1px 0 0;
  color: #6b7280;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
}

.vx-consent-close,
.vx-consent-btn,
.vx-consent-inventory__trigger,
.vx-consent-footer-link {
  appearance: none;
  border: 0;
  font: inherit;
}

.vx-consent-close,
.vx-consent-btn,
.vx-consent-inventory__trigger,
.vx-consent-option,
.vx-consent-footer-link {
  cursor: pointer;
}

.vx-consent-close {
  display: flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  transition: color 0.15s ease, background 0.15s ease;
}

.vx-consent-close:hover,
.vx-consent-close:focus-visible {
  background: #f7f8fa;
  color: #252525;
  outline: none;
}

.vx-consent-close svg {
  width: 18px;
  height: 18px;
}

.vx-consent-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 20px 16px;
}

.vx-consent-desc {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.vx-consent-current {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: linear-gradient(145deg, #eaf1ff, #fff);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.vx-consent-current__row,
.vx-consent-current {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.vx-consent-current__icon {
  display: flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border-radius: 50%;
  background: #fc5186;
  color: #fff;
  animation: vxConsentPulse 2s ease-in-out infinite;
}

.vx-consent-current.has-selection {
  border-color: #d3d9df;
  background: linear-gradient(145deg, #e8e0f0, #fff);
}

.vx-consent-current.has-selection .vx-consent-current__icon {
  background: #020281;
  animation: none;
}

.vx-consent-current svg {
  width: 10px;
  height: 10px;
}

.vx-consent-current > div > strong {
  display: block;
  color: #252525;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.vx-consent-current > div > small {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 400;
  line-height: 15px;
}

.vx-consent-current small strong {
  display: inline;
  color: #252525;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
}

.vx-consent-section-label {
  margin: 0 0 8px;
  color: #fc5186;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.vx-consent-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
}

.vx-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s ease;
}

.vx-consent-option:hover {
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.06);
}

.vx-consent-option.is-on {
  border-color: #020281;
  box-shadow: 0 2px 10px rgba(2, 2, 129, 0.1);
}

.vx-consent-option__main {
  display: block;
  min-width: 0;
}

.vx-consent-option__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.vx-consent-option strong {
  color: #252525;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.vx-consent-option em {
  border-radius: 999px;
  background: rgba(252, 81, 134, 0.08);
  color: #fc5186;
  padding: 1px 8px;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  line-height: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.vx-consent-option small,
.vx-consent-option__note {
  display: block;
  color: #6b7280;
  font-size: 11px;
  font-weight: 400;
}

.vx-consent-option small {
  margin-top: 1px;
  line-height: 15px;
}

.vx-consent-option__note {
  margin-top: 8px;
  line-height: 16px;
}

.vx-consent-toggle {
  flex: 0 0 auto;
}

.vx-consent-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.vx-consent-toggle > span {
  position: relative;
  display: block;
  width: 38px;
  height: 20px;
  border-radius: 9999px;
  background: #d3d9df;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vx-consent-toggle i {
  position: absolute;
  top: 2px;
  left: 2px;
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vx-consent-toggle input:checked + span {
  background: #020281;
}

.vx-consent-toggle input:checked + span i {
  transform: translateX(18px);
}

.vx-consent-toggle input:focus-visible + span {
  outline: 3px solid rgba(2, 2, 129, 0.22);
  outline-offset: 3px;
}

.vx-consent-inventory {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.vx-consent-inventory__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f7f8fa;
  color: #252525;
  text-align: left;
  transition: background 0.15s ease;
}

.vx-consent-inventory__trigger:hover,
.vx-consent-inventory__trigger:focus-visible {
  background: #eaf1ff;
  outline: none;
}

.vx-consent-inventory__trigger > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vx-consent-inventory__trigger svg:first-child {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #020281;
}

.vx-consent-inventory__trigger strong {
  color: #252525;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.vx-consent-inventory__chev {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #6b7280;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vx-consent-inventory.is-open .vx-consent-inventory__chev {
  transform: rotate(180deg);
}

.vx-consent-inventory__detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.vx-consent-inventory.is-open .vx-consent-inventory__detail {
  max-height: 520px;
  opacity: 1;
}

.vx-consent-inventory__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.vx-consent-inventory p {
  margin: 0;
  color: #6b7280;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
}

.vx-consent-inventory p:last-child {
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.vx-consent-inventory strong {
  display: block;
  margin-bottom: 2px;
  color: #252525;
  font-size: 11px;
  font-weight: 600;
  line-height: 15px;
}

.vx-consent-inventory__inner span {
  display: inline-block;
  margin-bottom: 4px;
  border-radius: 9999px;
  background: rgba(2, 2, 129, 0.06);
  color: #020281;
  padding: 1px 8px;
  font-size: 9px;
  font-weight: 600;
  line-height: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.vx-consent-inventory code,
.vx-consent-option code {
  display: inline-block;
  margin: 1px 1px;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  background: #f7f8fa;
  color: #020281;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.vx-consent-modal__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f7f8fa;
}

.vx-consent-btn {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 2px solid #020281;
  border-radius: 4px;
  padding: 6px 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease, border-color 0.15s ease;
}

.vx-consent-btn--primary {
  background: #020281;
  color: #fff;
}

.vx-consent-btn--pink {
  border-color: #fc5186;
  background: #fc5186;
  color: #fff;
}

.vx-consent-btn--secondary {
  border-color: #e5e7eb;
  background: transparent;
  color: #6b7280;
}

.vx-consent-btn--primary:hover,
.vx-consent-btn--pink:hover {
  opacity: 0.9;
}

.vx-consent-btn--secondary:hover,
.vx-consent-btn--secondary:focus-visible {
  border-color: #020281;
  color: #020281;
  outline: none;
}

.vx-consent-footer-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.vx-consent-footer-link {
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vx-consent-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 2147483002;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
}

.vx-consent-toast > div {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  background: #252525;
  color: #fff;
  padding: 10px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.vx-consent-toast svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #16a34a;
}

.vx-consent-toast.is-visible {
  animation: vxConsentToastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

.vx-consent-toast.is-hiding {
  animation: vxConsentToastOut 0.25s ease-in forwards;
}

@media (min-width: 640px) {
  .vx-consent-modal {
    align-items: center;
    padding: 16px;
  }

  .vx-consent-modal__panel {
    width: min(520px, 100%);
    border-radius: 18px;
  }
}

@media (max-width: 460px) {
  .vx-consent-modal__actions {
    flex-direction: column;
  }

  .vx-consent-btn {
    width: 100%;
  }
}

@keyframes vxConsentFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes vxConsentSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes vxConsentFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes vxConsentSlideDown {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(40px) scale(0.97); }
}

@keyframes vxConsentPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes vxConsentToastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes vxConsentToastOut {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, 12px); }
}
