.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(24, 16, 8, 0.38);
  box-sizing: border-box;
}

.cookie-consent__panel {
  width: min(100%, 760px);
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 16px;
  background: #fffaf4;
  box-shadow: 0 22px 70px rgba(24, 16, 8, 0.24);
  color: #2d1a0c;
  font-family: Inter, "Open Sans", Arial, sans-serif;
  box-sizing: border-box;
}

.cookie-consent__title {
  margin: 0 0 0.5rem;
  color: #2d1a0c;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 800;
}

.cookie-consent__text {
  margin: 0;
  color: #6b5847;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cookie-consent__settings {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.cookie-consent__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 10px;
  background: #ffffff;
}

.cookie-consent__toggle-content {
  display: grid;
  gap: 0.25rem;
}

.cookie-consent__toggle-content strong {
  color: #2d1a0c;
  font-size: 0.95rem;
}

.cookie-consent__toggle-content span {
  color: #6b5847;
  font-size: 0.86rem;
  line-height: 1.45;
}

.cookie-consent__toggle input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: #d97706;
  flex: 0 0 auto;
}

.cookie-consent__links {
  margin-top: 0.85rem;
}

.cookie-consent__links a {
  color: #b45309;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}

.cookie-consent__button,
.cookie-consent-settings-link {
  min-height: 2.75rem;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: 800 0.92rem/1.2 Inter, "Open Sans", Arial, sans-serif;
}

.cookie-consent__button {
  padding: 0.8rem 1rem;
}

.cookie-consent__button--primary {
  background: #d97706;
  color: #ffffff;
}

.cookie-consent__button--primary:hover {
  background: #b45309;
}

.cookie-consent__button--secondary {
  border: 1px solid rgba(217, 119, 6, 0.32);
  background: #ffffff;
  color: #6b3b0b;
}

.cookie-consent__button--secondary:hover {
  background: #fff3e2;
}

.cookie-consent-settings-link {
  display: block;
  margin: 1rem auto 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(217, 119, 6, 0.28);
  background: #ffffff;
  color: #6b3b0b;
  box-shadow: none;
}

.cookie-consent-settings-link:hover {
  background: #fff3e2;
}

@media (max-width: 640px) {
  .cookie-consent {
    align-items: stretch;
    padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem max(0.75rem, env(safe-area-inset-bottom));
  }

  .cookie-consent__panel {
    width: 100%;
    max-height: calc(100svh - 1.5rem);
    padding: 1rem;
    border-radius: 14px;
  }

  .cookie-consent__title {
    font-size: 1.08rem;
  }

  .cookie-consent__text {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .cookie-consent__toggle {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .cookie-consent__toggle-content strong {
    font-size: 0.9rem;
  }

  .cookie-consent__toggle-content span {
    font-size: 0.8rem;
  }

  .cookie-consent__actions {
    display: grid;
    position: sticky;
    bottom: -1rem;
    margin: 0.85rem -1rem -1rem;
    padding: 0.85rem 1rem 1rem;
    background: #fffaf4;
    border-top: 1px solid rgba(217, 119, 6, 0.14);
  }

  .cookie-consent__button {
    width: 100%;
    min-height: 2.6rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
  }

  .cookie-consent-settings-link {
    max-width: calc(100vw - 1.5rem);
  }
}
