#iph-cookie-root,
#iph-cookie-root * {
  box-sizing: border-box;
}

.iph-cookie-banner[hidden],
.iph-cookie-modal-overlay[hidden] {
  display: none !important;
}

:root {
  --iph-green: #559c43;
  --iph-green-dark: #4a8b3a;
  --iph-text: #1f1f1f;
  --iph-text-soft: #615c54;
  --iph-border: #e7e1d8;
  --iph-bg: #ffffff;
  --iph-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

/* Banner */
.iph-cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(1360px, calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid var(--iph-border);
  border-radius: 15px;
  box-shadow: var(--iph-shadow);
  z-index: 999999;
}

.iph-cookie-banner__content {
  flex: 1 1 auto;
  min-width: 0;
}

.iph-cookie-banner__title {
  margin: 0 0 10px;
  color: var(--iph-text);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.iph-cookie-banner__text {
  margin: 0;
  color: var(--iph-text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.iph-cookie-banner__text a {
  color: var(--iph-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.iph-cookie-banner__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

/* Buttons */
.iph-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  border-radius: 5px;
  min-height: 50px;
  padding: 14px 24px;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.iph-btn:focus-visible {
  outline: 2px solid #1f1f1f;
  outline-offset: 2px;
}

.iph-btn--primary {
  background: var(--iph-green);
  color: #ffffff;
  border-color: var(--iph-green);
}

.iph-btn--primary:hover {
  background: var(--iph-green-dark);
  border-color: var(--iph-green-dark);
}

.iph-btn--secondary {
  background: #ffffff;
  color: #1f1f1f;
  border-color: #ddd7cd;
}

.iph-btn--secondary:hover {
  background: #f7f4ee;
  border-color: #cfc7bb;
  color: #000;
}

.iph-btn--dark {
  background: #1f1f1f;
  color: #ffffff;
  border-color: #1f1f1f;
}

.iph-btn--dark:hover {
    background: #464444;
    border-color: #000000;
}

/* Modal */
.iph-cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(25, 22, 19, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000000;
}

.iph-cookie-modal {
  position: relative;
  width: min(880px, 100%);
  max-height: min(90vh, 940px);
  overflow: auto;
  padding: 32px 28px 28px;
  border-radius: 15px;
  background: #ffffff;
  border: 1px solid var(--iph-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.iph-cookie-modal__close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1f1f1f;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.iph-cookie-modal__close:hover,
.iph-cookie-modal__close:focus {
     background: rgb(0 0 0 / 0%);
    color: #559c43;
    outline: none;
}

.iph-cookie-modal__title {
  margin: 0 0 12px;
  padding-right: 40px;
  color: var(--iph-text);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.iph-cookie-modal__intro {
  margin: 0 0 28px;
  color: var(--iph-text-soft);
  font-size: 15px;
  line-height: 1.8;
}

/* Rows */
.iph-cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid #eee7dc;
}

.iph-cookie-row:first-of-type {
  border-top: none;
}

.iph-cookie-row__info {
  flex: 1 1 auto;
  min-width: 0;
}

.iph-cookie-row__info b {
  margin: 0 0 8px;
  color: #1f1f1f;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.iph-cookie-row__info p {
  margin: 0;
  color: var(--iph-text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.iph-cookie-row__toggle {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.iph-cookie-status {
  color: var(--iph-text-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* Switch */
.iph-switch {
  position: relative;
  width: 56px;
  height: 32px;
  display: inline-block;
}

.iph-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.iph-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d9d4cb;
  transition: 0.25s ease;
  cursor:pointer;
}

.iph-slider::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  transition: 0.25s ease;
}

.iph-switch input:checked + .iph-slider {
  background: var(--iph-green);
}

.iph-switch input:checked + .iph-slider::before {
  transform: translateX(24px);
}

.iph-switch--locked .iph-slider {
  background: var(--iph-green);
}

.iph-cookie-modal__footer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 28px;
  padding-top: 8px;
}

.iph-cookie-settings-trigger {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

body.iph-cookie-modal-open {
  overflow: hidden;
}

.iph-cookie-banner__actions,
.iph-cookie-modal__footer {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

.iph-cookie-banner__actions .iph-btn,
.iph-cookie-modal__footer .iph-btn {
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  .iph-cookie-banner {
    width: calc(100% - 20px);
    padding: 20px;
    gap: 18px;
  }

  .iph-cookie-banner__title {
    font-size: 20px;
  }

  .iph-cookie-modal {
    width: min(94vw, 880px);
  }
}

@media (max-width: 767px) {
  .iph-cookie-banner {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
  }

  .iph-cookie-banner__actions {
    width: 100%;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .iph-btn {
    width: 100%;
  }

  .iph-cookie-modal {
    padding: 24px 18px 20px;
    border-radius: 20px;
  }

  .iph-cookie-modal__title {
    font-size: 24px;
    padding-right: 34px;
  }

  .iph-cookie-row {
    flex-direction: column;
    gap: 14px;
  }

  .iph-cookie-row__toggle {
    width: 100%;
    justify-content: space-between;
  }

  .iph-cookie-modal__footer {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .iph-cookie-modal__footer .iph-btn {
    width: 100%;
  }
}