.sark-cookie-banner,
.sark-cookie-modal,
.sark-cookie-footer-link,
.sark-map-placeholder {
  font-family: "Open Sans", Arial, sans-serif;
}

.sark-cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: rgba(45, 49, 63, 0.98);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  border-radius: 12px;
  padding: 18px 20px;
}

.sark-cookie-banner[hidden],
.sark-cookie-modal[hidden] {
  display: none !important;
}

.sark-cookie-banner__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.sark-cookie-banner__title,
.sark-cookie-modal__title {
  margin: 0 0 8px;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.sark-cookie-banner__text,
.sark-cookie-modal__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.sark-cookie-banner__text a,
.sark-cookie-modal__text a,
.sark-cookie-modal__link,
.sark-cookie-footer-link {
  color: #45ef5b;
}

.sark-cookie-banner__actions,
.sark-cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.sark-cookie-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 42px;
  padding: 10px 18px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.sark-cookie-btn:hover,
.sark-cookie-btn:focus {
  outline: none;
  transform: translateY(-1px);
}

.sark-cookie-btn:focus-visible,
.sark-cookie-switch input:focus-visible + .sark-cookie-switch__slider,
.sark-cookie-footer-link:focus-visible,
.sark-map-placeholder__button:focus-visible,
.sark-cookie-close:focus-visible {
  outline: 3px solid rgba(69, 239, 91, 0.45);
  outline-offset: 2px;
}

.sark-cookie-btn--primary {
  background: #39e75f;
  border-color: #39e75f;
  color: #1d222b;
  box-shadow: 0 10px 24px rgba(57, 231, 95, 0.28);
}

.sark-cookie-btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
}

.sark-cookie-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sark-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sark-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 24, 0.76);
}

.sark-cookie-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #2d313f;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.4);
}

.sark-cookie-modal__header,
.sark-cookie-modal__body,
.sark-cookie-modal__footer {
  padding: 22px 24px;
}

.sark-cookie-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sark-cookie-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 0;
}

.sark-cookie-modal__body {
  display: grid;
  gap: 16px;
}

.sark-cookie-category {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
}

.sark-cookie-category__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sark-cookie-category__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.sark-cookie-category__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.sark-cookie-category__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 34px;
  border-radius: 999px;
  background: rgba(69, 239, 91, 0.15);
  color: #a6ffb4;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sark-cookie-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sark-cookie-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sark-cookie-switch__slider {
  position: relative;
  width: 56px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: background-color 0.18s ease;
}

.sark-cookie-switch__slider::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease;
}

.sark-cookie-switch input:checked + .sark-cookie-switch__slider {
  background: #39e75f;
}

.sark-cookie-switch input:checked + .sark-cookie-switch__slider::after {
  transform: translateX(24px);
}

.sark-cookie-switch input:disabled + .sark-cookie-switch__slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.sark-cookie-modal__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sark-cookie-footer-link {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin-left: 12px;
  padding: 0;
  text-decoration: underline;
}

.sark-cookie-footer-link--floating {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9000;
  background: rgba(45, 49, 63, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  color: #fff;
  margin-left: 0;
  padding: 10px 16px;
  text-decoration: none;
}

.sark-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 340px;
  background:
    linear-gradient(rgba(45, 49, 63, 0.78), rgba(45, 49, 63, 0.9)),
    url("../images/cover-three.jpg") center center / cover no-repeat;
  color: #fff;
  padding: 24px;
  text-align: center;
}

.sark-map-placeholder__text {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.6;
}

.sark-map-placeholder__button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #39e75f;
  color: #1d222b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 42px;
  padding: 10px 18px;
}

.sark-cookie-body-lock {
  overflow: hidden;
}

@media (max-width: 767px) {
  .sark-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }

  .sark-cookie-banner__content,
  .sark-cookie-category__row {
    flex-direction: column;
    align-items: stretch;
  }

  .sark-cookie-banner__actions,
  .sark-cookie-modal__actions {
    justify-content: stretch;
  }

  .sark-cookie-btn,
  .sark-map-placeholder__button {
    width: 100%;
  }

  .sark-cookie-modal {
    padding: 12px;
  }

  .sark-cookie-modal__header,
  .sark-cookie-modal__body,
  .sark-cookie-modal__footer {
    padding: 18px;
  }

  .sark-cookie-footer-link--floating {
    left: 12px;
    bottom: 12px;
  }
}
