.dofin-consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  color: #f6f4ed;
}

.dofin-consent-banner.is-hidden {
  display: none;
}

.dofin-consent-banner__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(220, 181, 63, 0.35);
  border-radius: 20px;
  background: linear-gradient(135deg, #06264d 0%, #0d355f 100%);
  box-shadow: 0 18px 40px rgba(6, 38, 77, 0.35);
}

.dofin-consent-banner__content {
  flex: 1 1 32rem;
}

.dofin-consent-banner__title {
  margin: 0 0 0.5rem;
  color: #f6f4ed;
  font-size: 1.1rem;
  line-height: 1.2;
}

.dofin-consent-banner__text {
  margin: 0;
  color: rgba(246, 244, 237, 0.92);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.dofin-consent-banner__link,
.dofin-consent-banner__button {
  min-height: 46px;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.dofin-consent-banner__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  color: #f3cf62;
  background: transparent;
}

.dofin-consent-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}

.dofin-consent-banner__button--secondary {
  color: #f6f4ed;
  border-color: rgba(246, 244, 237, 0.35);
  background: rgba(246, 244, 237, 0.08);
}

.dofin-consent-banner__button--primary {
  color: #06264d;
  background: #dcb53f;
}

.dofin-consent-banner__link:hover,
.dofin-consent-banner__button:hover {
  transform: translateY(-1px);
}

.dofin-consent-banner__link:focus-visible,
.dofin-consent-banner__button:focus-visible {
  outline: 3px solid #f3cf62;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(6, 38, 77, 0.55);
}

@media (max-width: 820px) {
  .dofin-consent-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .dofin-consent-banner__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .dofin-consent-banner__actions {
    justify-content: stretch;
    flex: 1 1 auto;
  }

  .dofin-consent-banner__link,
  .dofin-consent-banner__button {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .dofin-consent-banner {
    left: 16px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    max-width: none;
    z-index: 9999;
  }

  .dofin-consent-banner__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 14px;
    height: auto;
    max-height: calc(100svh - 32px);
    overflow-y: auto;
    padding: 20px 16px max(14px, env(safe-area-inset-bottom));
  }

  .dofin-consent-banner__content,
  .dofin-consent-banner__actions {
    flex: 0 0 auto;
    min-height: 0;
  }

  .dofin-consent-banner__title {
    margin: 0 0 0.375rem;
    font-size: 1.3rem;
    line-height: 1.2;
  }

  .dofin-consent-banner__text {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .dofin-consent-banner__actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 10px;
  }

  .dofin-consent-banner__link {
    justify-content: flex-start;
    padding: 0;
    min-height: 0;
    width: auto;
  }

  .dofin-consent-banner__button {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1rem;
  }
}
