.btn {
  display: inline-block;
  padding: .6rem .9rem;
  border: 1px solid #a58888;
  background: #a58888;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.btn-outline {
  background: #fff;
  color: #333;
  border: 1px solid #a58888;
}

.btn-ghost {
  background: transparent;
  color: #333;
  border: 1px solid #a58888;
}

a.btn {
  text-decoration: none;
}

/* Cookie banner (main consent prompt) */
.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}

.cookie-banner.show {
  visibility: visible;
  opacity: 1;
}

.cookie-banner__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
}

.cookie-banner__content {
  position: relative;
  z-index: 1;
  background: #fff;
  width: min(750px, 92vw);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  text-align: left;
}

.cookie-banner__actions {
  margin-top: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.cookie-banner__alt {
  margin: .5rem 0 0;
  font-size: .95rem;
  color: #333;
}

/* Cookie settings panel (secondary dialog) */
.cookie-panel[hidden] {
  display: none;
}

.cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}

.cookie-panel.show {
  visibility: visible;
  opacity: 1;
}

.cookie-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
}

.cookie-panel__content {
  position: relative;
  z-index: 1;
  background: #fff;
  width: min(640px, 92vw);
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  max-height: 90vh;
  overflow: auto;
}

.cookie-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}

.cookie-close {
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-panel fieldset {
  border: 1px solid #ddd;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 6px;
}

.cookie-panel legend {
  font-weight: 600;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .cookie-banner__actions,
  .cookie-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner .btn,
  .cookie-panel .btn {
    width: 100%;
  }
}

/* Previously:
   html.cookie-lock, body.cookie-lock { overflow: hidden !important; }
   This was causing CLS via scrollbar / viewport changes.
   Now we avoid changing layout when cookie-lock is toggled.
*/
html.cookie-lock,
body.cookie-lock {
  overflow-y: auto !important;
}


