/* Cookie consent — BARBER (matches dark/gold site chrome) */
.barber-cookie {
  --bc-bg: #1a1a1a;
  --bc-bg-2: #222222;
  --bc-line: rgba(214, 163, 84, 0.35);
  --bc-gold: #d6a354;
  --bc-gold-hover: #e0b56e;
  --bc-text: #e8e8e8;
  --bc-muted: #a8a8a8;
  --bc-white: #ffffff;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100050;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.barber-cookie.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.barber-cookie__panel {
  max-width: 1040px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--bc-bg-2) 0%, var(--bc-bg) 100%);
  border: 1px solid var(--bc-line);
  border-top: 2px solid var(--bc-gold);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  padding: 20px 22px 18px;
}

.barber-cookie__main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
}

.barber-cookie__copy {
  flex: 1 1 280px;
  min-width: 0;
}

.barber-cookie__title {
  margin: 0 0 8px;
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bc-white);
  line-height: 1.2;
}

.barber-cookie__text {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bc-muted);
}

.barber-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
}

.barber-cookie__btn {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 18px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.barber-cookie__btn--accept {
  background: var(--bc-gold);
  color: #111;
  border-color: var(--bc-gold);
}

.barber-cookie__btn--accept:hover,
.barber-cookie__btn--accept:focus-visible {
  background: var(--bc-gold-hover);
  border-color: var(--bc-gold-hover);
  color: #111;
  outline: none;
}

.barber-cookie__btn--necessary {
  background: transparent;
  color: var(--bc-text);
  border-color: rgba(255, 255, 255, 0.28);
}

.barber-cookie__btn--necessary:hover,
.barber-cookie__btn--necessary:focus-visible {
  border-color: var(--bc-gold);
  color: var(--bc-gold);
  outline: none;
}

.barber-cookie__link {
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 4px;
  cursor: pointer;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  color: var(--bc-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.barber-cookie__link:hover,
.barber-cookie__link:focus-visible {
  color: var(--bc-gold-hover);
  outline: none;
}

.barber-cookie__details {
  display: none;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.barber-cookie__details.is-open {
  display: block;
}

.barber-cookie__details-title {
  margin: 0 0 12px;
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bc-white);
}

.barber-cookie__cats {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.barber-cookie__cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.barber-cookie__cat-title {
  margin: 0 0 4px;
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bc-white);
}

.barber-cookie__cat-desc {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bc-muted);
}

.barber-cookie__badge {
  flex-shrink: 0;
  align-self: center;
  font-family: "Rubik", sans-serif;
  font-size: 11px;
  color: var(--bc-gold);
  border: 1px solid var(--bc-line);
  padding: 4px 8px;
  white-space: nowrap;
}

.barber-cookie__switch {
  position: relative;
  flex-shrink: 0;
  align-self: center;
  width: 44px;
  height: 24px;
}

.barber-cookie__switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.barber-cookie__switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #3a3a3a;
  cursor: pointer;
  transition: background 0.2s ease;
}

.barber-cookie__switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.barber-cookie__switch input:checked + span {
  background: var(--bc-gold);
}

.barber-cookie__switch input:checked + span::after {
  transform: translateX(20px);
}

.barber-cookie__switch input:focus-visible + span {
  outline: 2px solid var(--bc-gold);
  outline-offset: 2px;
}

.barber-cookie__footer-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.barber-cookie__footer-link:hover,
.barber-cookie__footer-link:focus-visible {
  color: #d6a354;
  outline: none;
}

.copyright-area .barber-cookie__footer-link {
  display: inline-block;
  margin-top: 8px;
}

body.barber-cookie-open .barber-contact-dock {
  bottom: calc(140px + env(safe-area-inset-bottom, 0px));
}

body.barber-cookie-open .scroll-top {
  bottom: calc(150px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 767px) {
  .barber-cookie {
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .barber-cookie__panel {
    padding: 16px 14px 14px;
  }

  .barber-cookie__title {
    font-size: 18px;
  }

  .barber-cookie__text {
    font-size: 13px;
  }

  .barber-cookie__actions {
    width: 100%;
  }

  .barber-cookie__btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .barber-cookie__link {
    width: 100%;
    text-align: left;
    padding-left: 0;
  }

  body.barber-cookie-open .barber-contact-dock {
    bottom: calc(220px + env(safe-area-inset-bottom, 0px));
  }

  body.barber-cookie-open .scroll-top {
    bottom: calc(230px + env(safe-area-inset-bottom, 0px));
  }
}
