/* Cookie banner — staging-style Finsweet consent UI without Webflow runtime */

.cookie-consent {
  font-family: var(--font-body);
}

.cookie-consent__banner {
  z-index: 9996;
  position: fixed;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 282px;
  background: #f5f5f5;
  color: #333;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.cookie-consent.is-set .cookie-consent__banner {
  display: none;
}

.cookie-consent__copy {
  max-width: 560px;
}

.cookie-consent__title {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #121212;
}

.cookie-consent__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #666;
}

.cookie-consent__text a {
  color: #00e;
  text-decoration: underline;
}

.cookie-consent__actions,
.cookie-consent__modal-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-consent__button,
.cookie-consent__link {
  border: 0;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.cookie-consent__link {
  color: #333;
  background: transparent;
  border-bottom: 1px solid #000;
  padding: 8px 0;
}

.cookie-consent__button {
  min-width: 70px;
  padding: 8px 16px;
}

.cookie-consent__button--muted {
  color: #333;
  background: #ddd;
}

.cookie-consent__button--gold {
  color: #121212;
  background: #e0bb7f;
}

.cookie-consent__prefs {
  z-index: 9998;
  position: fixed;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  padding: 8px 12px;
  color: #121212;
  background: #e0bb7f;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.cookie-consent:not(.is-set) .cookie-consent__prefs,
.cookie-consent.is-modal-open .cookie-consent__prefs {
  display: none;
}

.cookie-consent__prefs-icon {
  display: flex;
  width: 24px;
  line-height: 0;
}

.cookie-consent__prefs-icon svg {
  display: block;
  width: 100%;
  height: auto;
}

.cookie-consent__modal {
  z-index: 9997;
  position: fixed;
  inset: 0;
  display: none;
}

.cookie-consent__modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.cookie-consent__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.cookie-consent__panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 64px));
  max-height: 70vh;
  margin: 0;
  background: #fff;
  color: #121212;
  overflow: hidden;
}

.cookie-consent__close {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  border-radius: 0;
  width: 32px;
  height: 32px;
  color: #121212;
  background: #e0bb7f;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cookie-consent__panel-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 70vh;
  gap: 24px;
  padding: 32px;
  overflow: auto;
}

.cookie-consent__panel-header {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.cookie-consent__panel-title {
  margin: 0;
  font-size: 20px;
  line-height: 19.6px;
}

.cookie-consent__options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-consent__option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  color: #121212;
}

.cookie-consent__option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.cookie-consent__option p {
  margin: 0;
  font-size: 12px;
  line-height: 19.6px;
  color: #666;
}

.cookie-consent__option input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 44px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 2px;
  background-color: #ccc;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cookie-consent__option input::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background-color: #fff;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.cookie-consent__option input:checked {
  background-color: #e0bb7f;
}

.cookie-consent__option input:checked::before {
  transform: translateX(20px);
}

.cookie-consent__option input:focus-visible {
  outline: 2px solid #e0bb7f;
  outline-offset: 3px;
}

@media screen and (max-width: 991px) {
  .cookie-consent__banner {
    align-items: stretch;
    flex-direction: column;
    padding: 32px;
  }

  .cookie-consent__actions {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent__modal-actions {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 479px) {
  .cookie-consent__banner {
    padding: 32px;
  }

  .cookie-consent__panel-title {
    font-size: 16px;
  }
}
