.cookies-consent {
  position: relative;
  z-index: 1200;
}

.cookies-consent #cookiesjsr {
  --default-margin: 1.25rem;
  --font-size-reset: 1rem;
  --banner-bg-color: rgba(255, 255, 255, 0.96);
  --banner-font-color: #0f172a;
  --banner-box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
  --link-list-font-color: #0f9d8f;
  --link-list-separator-color: rgba(15, 118, 110, 0.25);
  --layer-header-bg-color: #f8fbfc;
  --layer-body-bg-color: #ffffff;
  --layer-footer-bg-color: #f8fbfc;
  --layer-border-color: #d7e3e9;
  --layer-header-font-color: #0f172a;
  --layer-footer-font-color: #0f172a;
  --layer-tab-bg-color: #f5f8fb;
  --layer-tab-font-color: #334155;
  --layer-tab-active-bg-color: #14b8a6;
  --layer-tab-active-font-color: #ffffff;
  --layer-font-light: #ffffff;
  --switch-bg-on: #14b8a6;
  --switch-bg-off: #d9e8e7;
  --switch-handle-color: #ffffff;
  --switch-border-color: #b7c8cf;
  --switch-always-on-font-color: #0f9d8f;
  --switch-always-on-bg-color: #eefaf8;
  --btn-font-color: #0f172a;
  --btn-border-color: #d0dde3;
  --btn-bg-color: #ffffff;
  --btn-inv-font-color: #0f172a;
  --btn-inv-border-color: #d0dde3;
  --btn-inv-bg-color: #ffffff;
  --btn-prime-font-color: #ffffff;
  --btn-prime-border-color: #14b8a6;
  --btn-prime-bg-color: #14b8a6;
  --btn-prime-inv-font-color: #0f172a;
  --btn-prime-inv-border-color: #14b8a6;
  --btn-prime-inv-bg-color: #ffffff;
}

.cookies-consent #cookiesjsr > .cookiesjsr--app {
  font-family: var(--font-sans);
}

.cookies-consent .cookiesjsr-banner {
  left: 50%;
  right: auto;
  bottom: 1rem;
  width: calc(100vw - 1.5rem);
  max-width: calc(100vw - 1.5rem);
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: calc(var(--radius, 0.625rem) * 2);
  padding: clamp(1rem, 2vw, 1.5rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 252, 0.98));
  color: #0f172a;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translate(-50%, 110%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
}

.cookies-consent .cookiesjsr-banner__links {
  display: none;
}

.cookies-consent .cookiesjsr-banner--active {
  transform: translate(-50%, 0);
}

.cookies-consent .cookiesjsr-banner__info {
  flex: 1 1 auto;
  margin-bottom: 0;
  max-height: none;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.7;
}

.cookies-consent .cookiesjsr-banner__action {
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
  padding-top: 0;
  flex: 0 0 auto;
  width: auto;
  margin-left: auto;
}

.cookies-consent .cookiesjsr-btn,
.cookies-consent .cookiesjsr-layer button.denyAll,
.cookies-consent .cookiesjsr-layer button.allowAll,
.cookies-consent .cookiesjsr-layer button.save {
  width: auto;
  min-height: 48px;
  margin: 0;
  padding: 0 1.25rem;
  border-radius: var(--radius, 0.625rem);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.cookies-consent .cookiesjsr-btn:hover,
.cookies-consent .cookiesjsr-layer button.denyAll:hover,
.cookies-consent .cookiesjsr-layer button.allowAll:hover,
.cookies-consent .cookiesjsr-layer button.save:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.cookies-consent .cookiesjsr-btn.important,
.cookies-consent .cookiesjsr-layer button.allowAll,
.cookies-consent .cookiesjsr-layer button.save {
  color: #ffffff;
  border-color: #14b8a6;
  background: linear-gradient(135deg, #14b8a6, #0f9d8f);
}

.cookies-consent .cookiesjsr-btn.invert,
.cookies-consent .cookiesjsr-btn.denyAll,
.cookies-consent .cookiesjsr-banner button.cookiesjsr-settings {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.14);
  background: #ffffff;
}

.cookies-consent .cookiesjsr-banner button.cookiesjsr-settings {
  font-weight: 700;
}

.cookies-consent .cookiesjsr-banner button.allowAll {
  min-width: 10rem;
}

.cookies-consent .cookiesjsr-layer-overlay {
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cookies-consent .cookiesjsr-layer {
  width: min(920px, calc(100vw - 1rem));
  max-width: calc(100vw - 1rem);
  height: min(82vh, 760px);
  max-height: calc(100vh - 1rem);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.3);
}

.cookies-consent .cookiesjsr-layer__header {
  min-height: 4rem;
  padding: 0 1.25rem;
  border-bottom-color: rgba(15, 118, 110, 0.12);
  background: linear-gradient(180deg, #f8fbfc, #eef5f7);
}

.cookies-consent .cookiesjsr-layer__title {
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cookies-consent .cookiesjsr-layer__close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background-color: rgba(20, 184, 166, 0.12);
  background-size: 0.95rem;
}

.cookies-consent .cookiesjsr-layer__body {
  background: #ffffff;
}

.cookies-consent .cookiesjsr-layer__footer {
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top-color: rgba(15, 118, 110, 0.12);
  background: #f8fbfc;
}

.cookies-consent .cookiesjsr-layer__label-all {
  color: #475569;
}

.cookies-consent .cookiesjsr-layer__actions {
  gap: 0.75rem;
  margin: 0;
  width: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookies-consent .cookiesjsr-layer button.denyAll,
.cookies-consent .cookiesjsr-layer button.allowAll,
.cookies-consent .cookiesjsr-layer button.save {
  width: auto;
  min-width: 8.5rem;
  padding: 0 1.25rem;
}

.cookies-consent .cookiesjsr-layer button.denyAll,
.cookies-consent .cookiesjsr-layer button.cookiesjsr-settings {
  color: #0f172a;
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
}

.cookies-consent .cookiesjsr-service-groups {
  background: #f5f8fb;
}

.cookies-consent .cookiesjsr-service-group {
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
}

.cookies-consent .cookiesjsr-service-group__tab {
  color: #334155;
  background: #f5f8fb;
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.cookies-consent .cookiesjsr-service-group__tab:hover {
  color: #0f172a;
  background: #edf8f6;
}

.cookies-consent .cookiesjsr-service-group--active .cookiesjsr-service-group__tab {
  color: #ffffff;
  background: linear-gradient(135deg, #14b8a6, #0f9d8f);
}

.cookies-consent .cookiesjsr-service-group--active .cookiesjsr-service-group__content {
  color: #0f172a;
  background: #ffffff;
}

.cookies-consent .cookiesjsr-service-group__intro {
  color: #475569;
}

.cookies-consent .cookiesjsr-service {
  border-bottom: 1px solid rgba(15, 118, 110, 0.08);
  background: transparent;
}

.cookies-consent .cookiesjsr-service:hover {
  background: rgba(20, 184, 166, 0.04);
}

.cookies-consent .cookiesjsr-service__description h3 {
  color: #0f172a;
  font-weight: 600;
}

.cookies-consent .cookiesjsr-service__links a,
.cookies-consent .cookiesjsr-service__always-on {
  color: #0f9d8f;
}

.cookies-consent .cookiesjsr-switch {
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.12);
}

.cookies-consent .cookiesjsr-switch:before {
  border-color: rgba(15, 118, 110, 0.26);
}

@media (max-width: 767.98px) {
  .cookies-consent .cookiesjsr-banner {
    flex-direction: column;
    bottom: 0.5rem;
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    border-radius: calc(var(--radius, 0.625rem) * 2);
    padding: 1rem;
  }

  .cookies-consent .cookiesjsr-banner__action,
  .cookies-consent .cookiesjsr-layer__footer,
  .cookies-consent .cookiesjsr-layer__actions {
    justify-content: flex-start;
  }

  .cookies-consent .cookiesjsr-banner button.cookiesjsr-settings,
  .cookies-consent .cookiesjsr-banner button.denyAll,
  .cookies-consent .cookiesjsr-banner button.allowAll,
  .cookies-consent .cookiesjsr-layer button.denyAll,
  .cookies-consent .cookiesjsr-layer button.allowAll,
  .cookies-consent .cookiesjsr-layer button.save {
    width: 100%;
  }

  .cookies-consent .cookiesjsr-layer {
    width: calc(100vw - 0.75rem);
    max-width: calc(100vw - 0.75rem);
    height: calc(100vh - 0.75rem);
    max-height: calc(100vh - 0.75rem);
    border-radius: 22px;
  }

  .cookies-consent .cookiesjsr-layer__footer {
    padding: 0.875rem 1rem;
  }

  .cookies-consent .cookiesjsr-layer__actions {
    width: 100%;
  }
}