.consent-modal[hidden] {
  display: none;
}

.consent-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
}

.consent-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  cursor: default;
}

.consent-frame {
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 520px;
  height: 129px;
  margin: 0;
  padding: 20px;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: #0c0c0c;
}

.consent-frame-layout {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  width: 496px;
  height: 89px;
  padding: 0;
  gap: 16px;
}

.consent-choice-frame {
  display: flex;
  flex: none;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  width: 496px;
  height: 38px;
  padding: 0;
  gap: 14px;
}

.consent-choice-frame > span:first-child {
  display: block;
  flex: none;
  width: 462px;
  height: 38px;
  color: #ffffff;
  font: 300 16px/19px "Roboto", sans-serif;
  letter-spacing: 0;
}

.consent-policy-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #80a5f6;
  font: inherit;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.consent-policy-link:hover {
  color: #9bb9ff;
}

.consent-policy-link:focus-visible {
  outline: 3px solid rgba(126, 164, 245, 0.95);
  outline-offset: 3px;
}

.consent-checkbox-frame {
  display: flex;
  flex: none;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.consent-checkbox-frame input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.consent-checkbox {
  box-sizing: border-box;
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #0051ff;
  background: transparent;
  transition:
    background-color 140ms ease,
    transform 140ms ease,
    opacity 140ms ease;
}

.consent-checkbox img {
  display: block;
  width: 16px;
  height: 12px;
  opacity: 0;
  transition: opacity 120ms ease;
}

.consent-checkbox-frame input:checked + .consent-checkbox img {
  opacity: 1;
}

.consent-checkbox-frame input:checked + .consent-checkbox {
  background: #0051ff;
}

.consent-checkbox-frame:hover .consent-checkbox {
  transform: scale(1.06);
}

.consent-checkbox-frame input:focus-visible + .consent-checkbox {
  outline: 3px solid rgba(126, 164, 245, 0.95);
  outline-offset: 3px;
}

.consent-actions-frame {
  display: flex;
  flex: none;
  flex-direction: row;
  align-items: center;
  width: 242px;
  height: 35px;
  padding: 0;
  gap: 12px;
}

.consent-confirm,
.consent-cancel {
  box-sizing: border-box;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 35px;
  padding: 10px;
  border-radius: 9.65079px;
  color: #ffffff;
  font: 400 12px/15px "Unbounded", sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 150ms ease,
    filter 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    opacity 150ms ease;
}

.consent-confirm {
  width: 152px;
  border: 0;
  background: #0051ff;
}

.consent-confirm:not(:disabled):hover {
  filter: brightness(1.12);
  box-shadow: 0 3px 10px rgba(0, 81, 255, 0.36);
  transform: translateY(-1px);
}

.consent-confirm:not(:disabled):active {
  filter: brightness(0.92);
  box-shadow: 0 1px 5px rgba(0, 81, 255, 0.26);
  transform: translateY(1px) scale(0.985);
}

.consent-confirm:disabled {
  filter: saturate(0.35);
  opacity: 0.42;
  cursor: not-allowed;
}

.consent-cancel {
  width: 78px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
}

.consent-cancel:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.consent-cancel:active {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(1px) scale(0.97);
}

.consent-confirm:focus-visible,
.consent-cancel:focus-visible {
  outline: 3px solid rgba(126, 164, 245, 0.95);
  outline-offset: 3px;
}

.policy-modal-backdrop[hidden] {
  display: none;
}

.policy-modal-backdrop {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: transparent;
}

.policy-modal {
  box-sizing: border-box;
  position: relative;
  width: min(1136px, calc(100vw - 48px));
  height: min(598px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: #0c0c0c;
}

.policy-modal-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font: 300 34px/38px "Roboto", sans-serif;
  cursor: pointer;
  opacity: 0.72;
  transition: color 150ms ease, opacity 320ms ease, transform 240ms ease;
}

.policy-modal-close:hover {
  color: #8dbbff;
  opacity: 1;
  transform: translateY(-2px) scale(1.08);
}

.policy-modal-close:active {
  transform: translateY(0) scale(0.96);
}

.policy-modal-close:focus-visible {
  outline: 3px solid #7ea4f5;
  outline-offset: 2px;
}

.policy-modal-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 40px 70px 56px 40px;
  scrollbar-width: none;
}

.policy-modal-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.policy-modal-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 10px;
  margin-bottom: 26px;
}

.policy-modal-header h2,
.policy-modal-header p,
.policy-modal-section h3,
.policy-modal-section p,
.policy-modal-section li {
  margin: 0;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  letter-spacing: 0;
}

.policy-modal-header h2 {
  padding-right: 42px;
  font-size: 36px;
  font-weight: 700;
  line-height: 42px;
}

.policy-modal-header p {
  font-size: 20px;
  font-weight: 300;
  line-height: 23px;
}

.policy-modal-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 20px;
}

.policy-modal-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;
}

.policy-modal-section h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
}

.policy-modal-section p,
.policy-modal-section li {
  font-size: 16px;
  font-weight: 300;
  line-height: 19px;
}

.policy-modal-section ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-left: 22px;
  gap: 6px;
}

.policy-modal-scrollbar {
  position: absolute;
  z-index: 3;
  top: 60px;
  right: 8px;
  bottom: 60px;
  width: 4px;
  overflow: hidden;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.policy-modal-scrollbar span {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 4px;
  min-height: 44px;
  border-radius: 999px;
  background: #0051ff;
}

.policy-modal-scrollbar.is-visible {
  opacity: 1;
}

.policy-modal-scrollbar[hidden] {
  display: none;
}

@media (min-width: 1200px) {
  .consent-modal {
    padding: calc(20px * var(--browser-layout-scale, 1));
  }

  .consent-frame {
    width: calc(520px * var(--browser-layout-scale, 1));
    height: auto;
    min-height: calc(129px * var(--browser-layout-scale, 1));
    padding: calc(20px * var(--browser-layout-scale, 1));
    gap: calc(10px * var(--browser-layout-scale, 1));
    border-radius: calc(24px * var(--browser-layout-scale, 1));
  }

  .consent-frame-layout,
  .consent-choice-frame {
    width: 100%;
    height: auto;
  }

  .consent-frame-layout {
    gap: calc(16px * var(--browser-layout-scale, 1));
  }

  .consent-choice-frame {
    gap: calc(14px * var(--browser-layout-scale, 1));
  }

  .consent-choice-frame > span:first-child {
    flex: 1;
    width: auto;
    height: auto;
    font-size: calc(16px * var(--browser-layout-scale, 1));
    line-height: calc(19px * var(--browser-layout-scale, 1));
  }

  .consent-checkbox-frame,
  .consent-checkbox {
    width: calc(20px * var(--browser-layout-scale, 1));
    height: calc(20px * var(--browser-layout-scale, 1));
  }

  .consent-checkbox {
    border-width: calc(2px * var(--browser-layout-scale, 1));
  }

  .consent-checkbox img {
    width: calc(16px * var(--browser-layout-scale, 1));
    height: calc(12px * var(--browser-layout-scale, 1));
  }

  .consent-actions-frame {
    width: calc(242px * var(--browser-layout-scale, 1));
    height: calc(35px * var(--browser-layout-scale, 1));
    gap: calc(12px * var(--browser-layout-scale, 1));
  }

  .consent-confirm,
  .consent-cancel {
    height: calc(35px * var(--browser-layout-scale, 1));
    padding: calc(10px * var(--browser-layout-scale, 1));
    border-radius: calc(9.65079px * var(--browser-layout-scale, 1));
    font-size: calc(12px * var(--browser-layout-scale, 1));
    line-height: calc(15px * var(--browser-layout-scale, 1));
  }

  .consent-confirm {
    width: calc(152px * var(--browser-layout-scale, 1));
  }

  .consent-cancel {
    width: calc(78px * var(--browser-layout-scale, 1));
  }

  .policy-modal-backdrop {
    padding: calc(24px * var(--browser-layout-scale, 1));
  }

  .policy-modal {
    width: min(
      calc(1136px * var(--browser-layout-scale, 1)),
      calc(100vw - (48px * var(--browser-layout-scale, 1)))
    );
    height: min(
      calc(598px * var(--browser-layout-scale, 1)),
      calc(100vh - (48px * var(--browser-layout-scale, 1)))
    );
    border-radius: calc(24px * var(--browser-layout-scale, 1));
  }

  .policy-modal-close {
    top: calc(10px * var(--browser-layout-scale, 1));
    right: calc(10px * var(--browser-layout-scale, 1));
    width: calc(42px * var(--browser-layout-scale, 1));
    height: calc(42px * var(--browser-layout-scale, 1));
    font-size: calc(34px * var(--browser-layout-scale, 1));
    line-height: calc(38px * var(--browser-layout-scale, 1));
  }

  .policy-modal-scroll {
    padding:
      calc(40px * var(--browser-layout-scale, 1))
      calc(70px * var(--browser-layout-scale, 1))
      calc(56px * var(--browser-layout-scale, 1))
      calc(40px * var(--browser-layout-scale, 1));
  }

  .policy-modal-scrollbar {
    top: calc(60px * var(--browser-layout-scale, 1));
    right: calc(8px * var(--browser-layout-scale, 1));
    bottom: calc(60px * var(--browser-layout-scale, 1));
    width: calc(4px * var(--browser-layout-scale, 1));
  }

  .policy-modal-scrollbar span {
    width: calc(4px * var(--browser-layout-scale, 1));
    min-height: calc(44px * var(--browser-layout-scale, 1));
  }

  .policy-modal-header {
    gap: calc(10px * var(--browser-layout-scale, 1));
    margin-bottom: calc(26px * var(--browser-layout-scale, 1));
  }

  .policy-modal-header h2 {
    padding-right: calc(42px * var(--browser-layout-scale, 1));
    font-size: calc(36px * var(--browser-layout-scale, 1));
    line-height: calc(42px * var(--browser-layout-scale, 1));
  }

  .policy-modal-header p {
    font-size: calc(20px * var(--browser-layout-scale, 1));
    line-height: calc(23px * var(--browser-layout-scale, 1));
  }

  .policy-modal-content {
    gap: calc(20px * var(--browser-layout-scale, 1));
  }

  .policy-modal-section {
    gap: calc(12px * var(--browser-layout-scale, 1));
  }

  .policy-modal-section h3 {
    font-size: calc(24px * var(--browser-layout-scale, 1));
    line-height: calc(28px * var(--browser-layout-scale, 1));
  }

  .policy-modal-section p,
  .policy-modal-section li {
    font-size: calc(16px * var(--browser-layout-scale, 1));
    line-height: calc(19px * var(--browser-layout-scale, 1));
  }

  .policy-modal-section ul {
    padding-left: calc(22px * var(--browser-layout-scale, 1));
    gap: calc(6px * var(--browser-layout-scale, 1));
  }
}

@media (max-width: 559px) {
  .consent-modal {
    padding: 14px;
  }

  .consent-frame {
    width: calc(100vw - 28px);
    height: auto;
    min-height: 129px;
    padding: 18px;
    border-radius: 18px;
  }

  .consent-frame-layout,
  .consent-choice-frame {
    width: 100%;
    height: auto;
  }

  .consent-frame-layout {
    gap: 14px;
  }

  .consent-choice-frame {
    align-items: flex-start;
    gap: 12px;
  }

  .consent-choice-frame > span:first-child {
    flex: 1;
    width: auto;
    height: auto;
    min-width: 0;
    font-size: 15px;
    line-height: 19px;
  }

  .consent-checkbox {
    margin-top: 1px;
  }

  .consent-actions-frame {
    width: 242px;
    max-width: 100%;
  }

  .policy-modal-backdrop {
    align-items: stretch;
    padding: 12px;
  }

  .policy-modal {
    width: 100%;
    height: 100%;
    border-radius: 18px;
  }

  .policy-modal-close {
    top: 6px;
    right: 6px;
  }

  .policy-modal-scroll {
    padding: 28px 42px 40px 20px;
  }

  .policy-modal-scrollbar {
    top: 52px;
    right: 5px;
    bottom: 38px;
  }

  .policy-modal-header {
    gap: 10px;
    margin-bottom: 28px;
  }

  .policy-modal-header h2 {
    padding-right: 38px;
    font-size: 31px;
    line-height: 38px;
  }

  .policy-modal-header p {
    font-size: 18px;
    line-height: 23px;
  }

  .policy-modal-section {
    gap: 10px;
  }

  .policy-modal-section h3 {
    font-size: 24px;
    line-height: 29px;
  }

  .policy-modal-section p,
  .policy-modal-section li {
    font-size: 16px;
    line-height: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-checkbox,
  .consent-checkbox img,
  .consent-confirm,
  .consent-cancel,
  .policy-modal-close {
    transition: none;
  }
}
