/* while a bottom sheet is up, the page behind it must not scroll */
html.luxora-sheet-open,
html.luxora-sheet-open body {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.cookie-consent-overlay {
  background: rgba(0, 0, 0, 0.45);
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: opacity 0.25s ease;
  z-index: 1200;
}

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

.cookie-consent-overlay.is-open {
  opacity: 1;
}

.cookie-consent-sheet {
  background: #fff;
  border-radius: 28px 28px 0 0;
  bottom: 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  left: 50%;
  max-height: 88dvh;
  max-width: 430px;
  position: fixed;
  transform: translate(-50%, 100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  width: 100%;
  z-index: 1201;
}

.cookie-consent-overlay.is-open + .cookie-consent-sheet,
.cookie-consent-sheet.is-open {
  transform: translate(-50%, 0);
}

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

.cookie-consent-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 18px 18px 4px;
  position: relative;
}

.cookie-consent-head::before {
  background: #e2e2e2;
  border-radius: 999px;
  content: "";
  height: 3px;
  left: 50%;
  position: absolute;
  top: 10px;
  transform: translateX(-50%);
  width: 48px;
}

.cookie-consent-head h2 {
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

.cookie-consent-close {
  appearance: none;
  background: none;
  border: 0;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
}

.cookie-consent-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 18px;
  scrollbar-width: none;
}

.cookie-consent-body::-webkit-scrollbar {
  display: none;
}

.cookie-consent-body p {
  color: #4a4a4a;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.cookie-consent-body p + p {
  margin-top: 12px;
}

.cookie-consent-body a {
  color: #1a1a1a;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-actions {
  display: grid;
  gap: 10px;
  padding: 0 18px 22px;
}

.cookie-consent-button {
  appearance: none;
  border: 1px solid #111114;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  height: 46px;
  letter-spacing: -0.01em;
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.cookie-consent-button--solid {
  background: #111114;
  color: #fff;
}

.cookie-consent-button--solid:hover {
  background: #000;
}

.cookie-consent-button--outline {
  background: #fff;
  color: #111114;
}

.cookie-consent-button--outline:hover {
  background: #f5f5f5;
}

/* Preferences view */
.cookie-consent-option {
  align-items: flex-start;
  border-bottom: 1px solid #ededed;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px 0;
}

.cookie-consent-option:first-of-type {
  padding-top: 0;
}

.cookie-consent-option:last-of-type {
  border-bottom: 0;
}

.cookie-consent-option__title {
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cookie-consent-option__text {
  color: #6b6b6b;
  font-size: 13px;
  line-height: 1.5;
}

.cookie-consent-option__locked {
  color: #8a8a8a;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 500;
  padding-top: 2px;
}

.cookie-consent-switch {
  appearance: none;
  -webkit-appearance: none;
  background: #d6d6d6;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  flex: 0 0 auto;
  height: 26px;
  margin-top: 2px;
  position: relative;
  transition: background-color 0.2s ease;
  width: 44px;
}

.cookie-consent-switch::after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 22px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.2s ease;
  width: 22px;
}

.cookie-consent-switch:checked {
  background: #111114;
}

.cookie-consent-switch:checked::after {
  transform: translateX(18px);
}

@media (max-width: 380px) {
  .cookie-consent-head h2 {
    font-size: 18px;
  }
}

/* Country / region sheet — chrome and list styled to match the Money
   Changer's currency picker (exchange-sheet / exchange-currency-*). */
.country-sheet .cookie-consent-head {
  align-items: flex-start;
  padding: 22px 22px 10px;
}

.country-sheet__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.country-sheet .cookie-consent-head h2 {
  color: #111;
  font-size: 18px;
  font-weight: 700;
}

.country-sheet__sub {
  color: #6e6e73;
  font-size: 13px;
  font-weight: 400;
  margin: 0;
}

.country-sheet .cookie-consent-body {
  overflow: visible;
  padding: 0 22px max(22px, env(safe-area-inset-bottom));
}

.country-sheet__search-wrap {
  position: relative;
  width: calc(100% + 8px);
  margin-left: -4px;
  margin-right: -4px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.country-sheet__search-icon {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b6b6b;
  pointer-events: none;
}

.country-sheet__search {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid #ededed;
  border-radius: 0;
  padding: 8px 40px 8px 32px;
  font-size: 16px;
  line-height: 1.4;
  font-family: inherit;
  color: #1a1a1a;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.country-sheet__search:focus {
  border-bottom-color: #1a1a1a;
}

.country-sheet__search::placeholder {
  color: #9a9a9a;
}

.country-sheet__search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #6b6b6b;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 6px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.country-sheet__search-clear[hidden] {
  display: none;
}

.country-sheet__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 55vh;
  overflow-y: auto;
  scrollbar-width: none;
  width: calc(100% + 8px);
  margin-left: -4px;
  margin-right: -4px;
}

.country-sheet__list::-webkit-scrollbar {
  display: none;
}

.country-sheet__option {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 14px;
  gap: 12px;
  padding: 10px 4px;
  text-align: left;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}

.country-sheet__option:active {
  background: #f2f2f2;
}

.country-sheet__option-icon {
  border: 1px solid #dedede;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 32px;
  overflow: hidden;
  width: 32px;
}

.country-sheet__option-icon img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.country-sheet__option-name {
  flex: 1 1 auto;
}

.country-sheet__option[aria-selected="true"] {
  font-weight: 600;
}

.country-sheet__option-check {
  align-items: center;
  background: #111;
  border-radius: 50%;
  display: flex;
  flex: 0 0 auto;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.country-sheet__empty {
  color: #6b6b6b;
  font-size: 14px;
  padding: 24px 0;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .country-sheet__option:hover {
    background: #f7f7f7;
  }
}
