/* SailScanner cookie consent banner */
.ss-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000010; /* above currency switcher + yacht-finder sticky CTA */
  font-family: fieldwork, Outfit, "Plus Jakarta Sans", system-ui, sans-serif;
  color: #fff;
}

.ss-consent__bar,
.ss-consent__panel {
  background: #12305c;
  box-shadow: 0 -4px 24px rgba(18, 48, 92, 0.28);
}

/* 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;
  flex-wrap: wrap;
}

/* Lift fixed site chrome above the banner while consent is open. */
.ss-currency-switcher,
.ss-currency-alert,
.yfw-root {
  transition: bottom 0.25s ease;
}

html.ss-consent-open .ss-currency-switcher,
html.ss-consent-open .yfw-root {
  bottom: var(--ss-consent-offset, 16px) !important;
}

html.ss-consent-open .ss-currency-alert {
  bottom: calc(var(--ss-consent-offset, 16px) + 56px) !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;
  max-width: 40rem;
  margin: 0 auto;
  border-radius: 4px 4px 0 0;
  width: calc(100% - 1.5rem);
}

.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;
  }
}
