/**
 * BeautyHills Cookie Consent Banner
 */

.bh-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  padding: 1rem;
  pointer-events: none;
}

.bh-cookie-banner[hidden] {
  display: none !important;
}

.bh-cookie-banner__panel {
  pointer-events: auto;
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ebe6df;
  box-shadow: 0 -8px 40px rgba(40, 30, 20, 0.12);
  padding: 1.25rem 1.25rem 1.15rem;
}

@media (min-width: 768px) {
  .bh-cookie-banner {
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .bh-cookie-banner__panel {
    padding: 1.5rem 1.75rem 1.35rem;
  }
}

.bh-cookie-banner__main {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 860px) {
  .bh-cookie-banner__main {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1.5rem;
  }
}

.bh-cookie-banner__copy .section-label {
  display: block;
  margin-bottom: 0.45rem;
}

.bh-cookie-banner__text {
  margin: 0 0 0.65rem;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  max-width: 46rem;
}

.bh-cookie-banner__privacy {
  font-size: 13px;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bh-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  align-items: center;
}

.bh-cookie-btn {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 31px;
  padding: 0.7rem 1.2rem;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bh-cookie-btn--primary {
  background: #000;
  color: #fff;
  border-color: #000;
}

.bh-cookie-btn--primary:hover {
  background: #222;
}

.bh-cookie-btn--ghost {
  background: #fff;
  color: #000;
  border-color: #000;
}

.bh-cookie-btn--ghost:hover {
  background: #000;
  color: #fff;
}

.bh-cookie-btn--link {
  background: transparent;
  color: #555;
  border-color: transparent;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 13px;
}

.bh-cookie-btn--link:hover {
  color: #000;
}

.bh-cookie-banner__settings {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #efeae3;
  display: grid;
  gap: 0.85rem;
}

.bh-cookie-banner__settings[hidden] {
  display: none !important;
}

.bh-cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.bh-cookie-option__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.bh-cookie-option__desc {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #000;
}

.bh-cookie-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  margin-top: 0.15rem;
  cursor: pointer;
}

.bh-cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.bh-cookie-switch__ui {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}

.bh-cookie-switch__ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.bh-cookie-switch input:checked + .bh-cookie-switch__ui {
  background: #E6503E;
}

.bh-cookie-switch input:checked + .bh-cookie-switch__ui::after {
  transform: translateX(18px);
}

.bh-cookie-switch--locked {
  cursor: default;
  opacity: 0.85;
}

.bh-cookie-switch--locked input:checked + .bh-cookie-switch__ui {
  background: #111;
}

.bh-cookie-banner__settings-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.25rem;
}

html.bh-cookies-pending {
  scroll-padding-bottom: 12rem;
}

@media (max-width: 639px) {
  .bh-cookie-banner__actions {
    width: 100%;
  }

  .bh-cookie-btn--primary,
  .bh-cookie-btn--ghost {
    flex: 1 1 calc(50% - 0.35rem);
    text-align: center;
    justify-content: center;
  }

  .bh-cookie-btn--link {
    width: 100%;
    text-align: center;
  }
}

.bh-cookie-settings-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin-top: 0.35rem;
  font: inherit;
  font-size: 13px;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.bh-cookie-settings-link:hover {
  opacity: 0.7;
}
