#fhg-cookie-consent-root,
#fhg-cookie-consent-root * {
  box-sizing: border-box;
}

#fhg-cookie-consent-root {
  font-family: inherit;
}

.fhg-cookie-banner[hidden],
.fhg-cookie-modal-overlay[hidden] {
  display: none !important;
}

:root {
  --fhg-blue: #1496db;
  --fhg-blue-dark: #0e7fbb;
  --fhg-blue-deep: #0b5f8d;
  --fhg-text: #1f2937;
  --fhg-text-soft: #606b7a;
  --fhg-border: #dbe6ef;
  --fhg-bg: #ffffff;
  --fhg-shadow: 0 18px 48px rgba(7, 34, 57, 0.18);
}

/* Banner */
.fhg-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--fhg-border);
  border-radius: 22px;
  box-shadow: var(--fhg-shadow);
  z-index: 9999999999;
}

.fhg-cookie-banner__content {
  flex: 1 1 auto;
  min-width: 0;
}

.fhg-cookie-banner__title {
  margin: 0 0 8px;
  color: var(--fhg-text);
  font-size: 20px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fhg-cookie-banner__text {
  margin: 0;
  color: var(--fhg-text-soft);
  font-size: 12px;
  line-height: 1.7;
}

.fhg-cookie-banner__text a {
  color: var(--fhg-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.fhg-cookie-banner__actions {
  display: flex;

  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

/* Buttons */
.fhg-btn {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 12px;
  min-height: 48px;
  padding: 13px 20px;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.fhg-btn:focus-visible {
  outline: 2px solid var(--fhg-blue);
  outline-offset: 2px;
}

.fhg-btn--primary {
    color: #ffffff;
    background: #028ecf !important;
    border-color: #028ecf;
    border-color: var(--fhg-blue-dark);
    box-shadow: 0 8px 20px rgba(20, 150, 219, 0.22);
}

.fhg-btn--primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #18a3ee 0%, var(--fhg-blue) 100%);
}

.fhg-btn--secondary {
  color: var(--fhg-text);
  background: #ffffff;
  border-color: #cfdce7;
}

.fhg-btn--secondary:hover {
  background: #f6fbff;
  border-color: #bdd1df;
}

.fhg-btn--ghost {
  color: var(--fhg-blue-deep);
  background: #eef8fd;
  border-color: #d5ebf7;
}

.fhg-btn--ghost:hover {
  background: #e3f4fc;
}

/* Modal */
.fhg-cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 22, 32, 0.58);
  z-index: 99999999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fhg-cookie-modal {
  position: relative;
  width: min(780px, 100%);
  max-height: min(90vh, 920px);
  overflow: auto;
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22);
  padding: 32px;
}

.fhg-cookie-modal__close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 4px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent!important;
  color: #3c4654;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.fhg-cookie-modal__close:hover {
  background: none!important;
  color:#368aff!important;
}
.fhg-cookie-modal__close:hover:before{
    content: none!important;
}
.fhg-cookie-modal__title {
  margin: 0 0 12px;
  padding-right: 46px;
  color: var(--fhg-text);
  font-size: 32px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fhg-cookie-modal__intro {
  margin: 0 0 26px;
  color: var(--fhg-text-soft);
  font-size: 12px;
  line-height: 1.75;
}

/* Rows */
.fhg-cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid #e8eef4;
}

.fhg-cookie-row:first-of-type {
  border-top: none;
}

.fhg-cookie-row__info {
  flex: 1 1 auto;
  min-width: 0;
}

.fhg-cookie-row__info h4 {
  margin: 0 0 6px;
  color: var(--fhg-text);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.fhg-cookie-row__info p {
  margin: 0;
  color: var(--fhg-text-soft);
  font-size: 12px;
  line-height: 1.7;
}

.fhg-cookie-row__toggle {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fhg-cookie-status {
  color: var(--fhg-text-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* Switch */
.fhg-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
}

.fhg-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fhg-slider {
  position: absolute;
  inset: 0;
  background: #d9e3ea;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.fhg-slider::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}

.fhg-switch input:checked + .fhg-slider {
  background: linear-gradient(180deg, var(--fhg-blue) 0%, var(--fhg-blue-dark) 100%);
}

.fhg-switch input:checked + .fhg-slider::before {
  transform: translateX(24px);
}

.fhg-switch--locked .fhg-slider {
  background: #7f95a8;
}

.fhg-cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.fhg-cookie-settings-trigger {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fhg-cookie-settings-trigger:hover {
  opacity: 0.8;
}

body.fhg-cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .fhg-cookie-banner {
    width: calc(100% - 20px);
    padding: 20px;
  }

  .fhg-cookie-banner__title {
    font-size: 16px;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .fhg-cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    border-radius: 18px;
  }

  .fhg-cookie-banner__actions {
    width: 100%;
   
    align-items: stretch;
  }

  .fhg-btn {
    width: 100%;
  }

  .fhg-cookie-modal {
    padding: 24px 18px 20px;
    border-radius: 20px;
  }

  .fhg-cookie-modal__title {
    font-size: 26px;
    padding-right: 36px;
  }

  .fhg-cookie-row {
    flex-direction: column;
    gap: 14px;
  }

  .fhg-cookie-row__toggle {
    width: 100%;
    justify-content: space-between;
  }


  .fhg-cookie-modal__footer .fhg-btn {
    width: 48%;
  }
  .fhg-cookie-modal__footer .fhg-btn--primary{
    width:100%!important;
  }
}