/* SailScanner cookie consent modal (blocking until choice) */
.ss-consent {
  position: fixed;
  inset: 0;
  z-index: 1000010; /* above currency switcher + yacht-finder sticky CTA */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: fieldwork, Outfit, "Plus Jakarta Sans", system-ui, sans-serif;
  color: #fff;
  padding: 0;
}

.ss-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 36, 63, 0.6);
}

.ss-consent__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(92vh, 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #12305c;
  box-shadow: 0 -8px 32px rgba(18, 48, 92, 0.35);
  border-radius: 12px 12px 0 0;
}

.ss-consent__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ss-consent__bar,
.ss-consent__panel {
  background: #12305c;
}

/* Author display rules must not defeat the HTML hidden attribute. */
.ss-consent__bar[hidden],
.ss-consent__panel[hidden] {
  display: none !important;
}

.ss-consent__bar {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.85rem 1.25rem 1.1rem;
  flex-wrap: wrap;
}

html.ss-consent-open,
html.ss-consent-open body {
  overflow: hidden !important;
}

.ss-consent__copy {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 300;
}

.ss-consent__copy strong {
  font-weight: 600;
}

.ss-consent__copy a {
  color: #fff;
  text-decoration: underline;
}

.ss-consent__actions,
.ss-consent__panel-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.1rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.ss-consent__accept,
.ss-consent__save {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: 2px;
  line-height: 1.2;
}

.ss-consent__accept {
  background: #fff;
  color: #12305c;
}

.ss-consent__save {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.ss-consent__link {
  appearance: none;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.ss-consent__panel {
  padding: 1rem 1.25rem 1.15rem;
  width: 100%;
}

.ss-consent__panel-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.ss-consent__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  cursor: pointer;
}

.ss-consent__row span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ss-consent__row em {
  font-style: normal;
  opacity: 0.85;
  font-weight: 300;
  font-size: 0.82rem;
}

.ss-consent__row input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.ss-consent__row--locked {
  opacity: 0.7;
  cursor: default;
}

.ss-consent__panel-actions {
  margin: 0.9rem 0 0;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .ss-consent__bar {
    flex-direction: column;
    align-items: stretch;
  }

  .ss-consent__actions {
    margin-left: 0;
    justify-content: space-between;
  }

  .ss-consent__accept {
    flex: 1 1 auto;
    text-align: center;
  }

  .ss-consent__panel-actions {
    justify-content: space-between;
  }
}

/* Desktop: centred modal card */
@media (min-width: 641px) {
  .ss-consent {
    align-items: center;
    padding: 1.5rem;
  }

  .ss-consent__dialog {
    width: min(560px, 100%);
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(8, 20, 40, 0.45);
  }

  .ss-consent__bar {
    padding: 1.15rem 1.35rem 1.25rem;
  }

  .ss-consent__panel {
    padding: 1.15rem 1.35rem 1.25rem;
  }
}
