.fidaty-consent-banner {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 5px);
  z-index: 130;
  width: min(calc(var(--section-shell-max, 1220px) - 50px), calc(100vw - 50px));
  transform: translateX(-50%);
  pointer-events: auto;
}

.fidaty-consent-banner__shell {
  border: 1px solid var(--section-shell-border, #e2e8f0);
  border-radius: var(--section-shell-radius, 23px);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.985) 84%);
  box-shadow:
    var(--section-shell-shadow, 0 16px 38px rgba(15, 23, 42, 0.09)),
    0 16px 32px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.fidaty-consent-banner__content {
  display: grid;
  gap: 0.48rem;
  padding: clamp(0.74rem, 1.3vw, 0.92rem) clamp(0.95rem, 1.65vw, 1.12rem);
}

.fidaty-consent-banner__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.fidaty-consent-banner.is-expanded .fidaty-consent-banner__content {
  gap: 0;
}

.fidaty-consent-banner.is-expanded .fidaty-consent-banner__row {
  align-items: center;
}

.fidaty-consent-banner__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.fidaty-consent-banner__summaryline {
  display: flex;
  align-items: baseline;
  gap: 0.48rem;
  min-width: 0;
  flex-wrap: wrap;
}

.fidaty-consent-banner__summary {
  margin: 0;
  min-width: 0;
  color: #0f172a;
  font-size: 0.93rem;
  line-height: 1.24;
  font-weight: 400;
}

.fidaty-consent-banner__text {
  margin: 0;
  max-width: 70ch;
  color: #526277;
  font-size: 0.82rem;
  line-height: 1.42;
}

.fidaty-consent-banner__details {
  display: block;
  padding-top: 0;
}

.fidaty-consent-banner__details-main {
  display: grid;
  gap: 0;
  max-width: 760px;
}

.fidaty-consent-banner__details-main > .fidaty-consent-banner__text {
  margin-top: 5px;
}

.fidaty-consent-banner__preferences {
  display: flex;
  align-items: center;
  gap: 0.42rem 1.05rem;
  flex-wrap: wrap;
  margin-top: 15px;
}

.fidaty-consent-banner__preference {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 0;
  padding: 0;
  color: #0f172a;
  font-size: 0.79rem;
  font-weight: 500;
  line-height: 1.2;
}

.fidaty-consent-banner__preference-text {
  white-space: nowrap;
}

.fidaty-consent-banner__preference input[type='checkbox'] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #2f6ae5;
}

.fidaty-consent-banner__preference.is-disabled {
  opacity: 0.86;
}

.fidaty-consent-banner__links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 10px;
}

.fidaty-consent-banner__links a {
  color: #2458c7;
  font-size: 0.79rem;
  font-weight: 600;
  text-decoration: none;
}

.fidaty-consent-banner__links a:hover,
.fidaty-consent-banner__links a:focus-visible {
  text-decoration: underline;
}

.fidaty-consent-banner__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.fidaty-consent-banner__actions-mobile {
  display: none;
}

.fidaty-consent-banner__actions-bottom {
  margin-top: 0.85rem;
}

.fidaty-consent-banner:not(.is-expanded) .fidaty-consent-banner__actions {
  flex-wrap: nowrap;
}

.fidaty-consent-banner__collapsed-accept-btn {
  min-width: 8.65rem;
  white-space: nowrap;
}

.fidaty-consent-banner__actions-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
}

.fidaty-consent-banner__save-link-slot {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  width: 4.95rem;
  flex: 0 0 auto;
  opacity: 1;
  transform: translateX(0);
  will-change: width, opacity, transform;
  transition: width 0.28s ease, opacity 0.22s ease, transform 0.28s ease;
}

.fidaty-consent-banner__primary-slot {
  position: relative;
  flex: 0 0 auto;
  width: 8.65rem;
  height: 2.35rem;
}

.fidaty-consent-banner__primary-btn {
  --slot-shift: 0px;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  white-space: nowrap;
  transform: translateX(var(--slot-shift)) translateZ(0);
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: opacity 0.24s ease, transform 0.3s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.fidaty-consent-banner__save-btn {
  --slot-shift: -18px;
  opacity: 0;
  pointer-events: none;
}

.fidaty-consent-banner__accept-btn {
  opacity: 1;
  transform: translateX(0);
}

.fidaty-consent-banner.is-all-enabled .fidaty-consent-banner__save-link-slot {
  width: 0;
  opacity: 0;
  transform: translateX(10px);
}

.fidaty-consent-banner.is-all-enabled .fidaty-consent-banner__accept-btn {
  opacity: 0;
  transform: translateX(0);
  pointer-events: none;
}

.fidaty-consent-banner.is-all-enabled .fidaty-consent-banner__save-btn {
  --slot-shift: 0px;
  opacity: 1;
  pointer-events: auto;
}

.fidaty-consent-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: #526277;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.fidaty-consent-link:hover,
.fidaty-consent-link:focus-visible {
  color: #2458c7;
}

.fidaty-consent-link:focus-visible,
.fidaty-consent-btn:focus-visible,
.fidaty-consent-banner__preference input[type='checkbox']:focus-visible {
  outline: 2px solid rgba(47, 106, 229, 0.44);
  outline-offset: 3px;
}

.fidaty-consent-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 2.35rem;
  padding: 0.56rem 1rem;
  background: #2f6ae5;
  color: #ffffff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(47, 106, 229, 0.24);
}

.fidaty-consent-btn:hover {
  background: #2458c7;
  box-shadow: 0 12px 24px rgba(36, 88, 199, 0.28);
}

.fidaty-consent-banner__toggle {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.42rem;
  line-height: 1.24;
  flex: 0 0 auto;
  white-space: nowrap;
}

.fidaty-consent-banner__toggle-label {
  display: block;
  line-height: 1.24;
}

.fidaty-consent-banner__chevron {
  position: relative;
  width: 0.72rem;
  height: 0.72rem;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  opacity: 0.95;
}

.fidaty-consent-banner__chevron::before {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  display: block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.fidaty-consent-banner.is-expanded .fidaty-consent-banner__chevron::before {
  transform: rotate(-135deg);
}

@media (max-width: 768px) {
  .fidaty-consent-banner {
    width: calc(100vw - 50px);
  }

  .fidaty-consent-banner__content {
    gap: 0.4rem;
    padding: 0.68rem 0.76rem;
  }

  .fidaty-consent-banner__row {
    gap: 0.58rem;
  }

  .fidaty-consent-banner__summary {
    flex: 1 1 auto;
    font-size: 0.84rem;
  }

  .fidaty-consent-banner__summaryline {
    align-items: center;
    gap: 0.36rem;
    flex-wrap: nowrap;
  }

  .fidaty-consent-banner.is-expanded .fidaty-consent-banner__summaryline {
    display: block;
  }

  .fidaty-consent-banner.is-expanded .fidaty-consent-banner__summary,
  .fidaty-consent-banner.is-expanded .fidaty-consent-banner__toggle {
    display: inline;
    vertical-align: baseline;
  }

  .fidaty-consent-banner.is-expanded .fidaty-consent-banner__toggle {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .fidaty-consent-banner__text {
    font-size: 0.76rem;
  }

  .fidaty-consent-banner__actions {
    gap: 0.38rem 0.56rem;
    flex-wrap: nowrap;
  }

  .fidaty-consent-banner__actions-desktop {
    display: none;
  }

  .fidaty-consent-banner__actions-mobile {
    display: flex;
  }

  .fidaty-consent-banner.is-expanded .fidaty-consent-banner__actions-bottom {
    width: 100%;
    justify-content: flex-start;
  }

  .fidaty-consent-banner__actions-secondary {
    gap: 0.36rem 0.56rem;
    flex-wrap: nowrap;
  }

  .fidaty-consent-banner.is-expanded .fidaty-consent-banner__actions-secondary {
    justify-content: flex-start;
  }

  .fidaty-consent-banner__save-link-slot {
    width: 4.2rem;
  }

  .fidaty-consent-btn {
    min-height: 2.08rem;
    padding: 0.48rem 0.84rem;
    font-size: 0.77rem;
  }

  .fidaty-consent-banner__primary-slot {
    width: 7.3rem;
    height: 2.08rem;
  }

  .fidaty-consent-banner__collapsed-accept-btn {
    min-width: 7.3rem;
  }

  .fidaty-consent-banner__preferences {
    gap: 0.3rem 0.68rem;
  }

  .fidaty-consent-banner__preference {
    font-size: 0.74rem;
  }

  .fidaty-consent-banner__links {
    gap: 0.48rem;
  }

  .fidaty-consent-banner__links a,
  .fidaty-consent-link {
    font-size: 0.76rem;
  }

  .fidaty-consent-banner__details-main {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 443px) {
  .fidaty-consent-banner:not(.is-expanded) .fidaty-consent-banner__summaryline {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .fidaty-consent-banner:not(.is-expanded) .fidaty-consent-banner__summary {
    flex: 1 1 100%;
  }

  .fidaty-consent-banner:not(.is-expanded) .fidaty-consent-banner__toggle {
    align-self: flex-start;
  }
}

@media (max-width: 360px) {
  .fidaty-consent-banner {
    width: calc(100vw - 50px);
  }

  .fidaty-consent-banner__content {
    padding: 0.62rem 0.72rem;
  }

  .fidaty-consent-banner__row {
    gap: 0.5rem;
  }

  .fidaty-consent-banner__summary {
    font-size: 0.78rem;
  }

  .fidaty-consent-banner__toggle,
  .fidaty-consent-link {
    font-size: 0.73rem;
  }

  .fidaty-consent-banner__summaryline {
    gap: 0.3rem;
  }

  .fidaty-consent-banner__actions {
    gap: 0.24rem 0.38rem;
  }

  .fidaty-consent-banner__actions-secondary {
    gap: 0.22rem 0.34rem;
  }

  .fidaty-consent-btn {
    min-height: 1.88rem;
    padding-inline: 0.66rem;
    font-size: 0.69rem;
  }

  .fidaty-consent-banner__primary-slot {
    width: 5.95rem;
    height: 1.88rem;
  }

  .fidaty-consent-banner__save-link-slot {
    width: 3.5rem;
  }

  .fidaty-consent-banner__collapsed-accept-btn {
    min-width: 5.95rem;
    padding-inline: 0.56rem;
  }

  .fidaty-consent-banner__actions-secondary .fidaty-consent-link {
    white-space: nowrap;
  }

  .fidaty-consent-banner.is-expanded .fidaty-consent-banner__copy,
  .fidaty-consent-banner.is-expanded .fidaty-consent-banner__actions-bottom,
  .fidaty-consent-banner.is-expanded .fidaty-consent-banner__actions-secondary,
  .fidaty-consent-banner.is-expanded .fidaty-consent-banner__details-main,
  .fidaty-consent-banner.is-expanded .fidaty-consent-banner__summaryline {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .fidaty-consent-banner.is-expanded .fidaty-consent-banner__actions-bottom {
    align-items: center;
    flex-wrap: nowrap;
  }

  .fidaty-consent-banner.is-expanded .fidaty-consent-banner__details-main > .fidaty-consent-banner__text,
  .fidaty-consent-banner.is-expanded .fidaty-consent-banner__preferences,
  .fidaty-consent-banner.is-expanded .fidaty-consent-banner__links {
    text-align: left;
  }
}
