/* Cookie consent — Popsugar / OneTrust-style preferences */

.voicey-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  padding: 16px 30px;
  box-sizing: border-box;
}

.voicey-cookie-banner[hidden] {
  display: none !important;
}

.voicey-cookie-banner__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.voicey-cookie-banner__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 500;
  padding: 0;
  color: #000;
}

.voicey-cookie-banner__text {
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #000;
  font-weight: 400;
}

.voicey-cookie-banner__inner .voicey-cookies-mainss {
  flex: 0 0 60%;
}

.voicey-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 40%;
  justify-content: center;
}

.voicey-cookie-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100001 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.voicey-cookie-modal[hidden] {
  display: none !important;
}

.voicey-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.voicey-cookie-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 4px;
  padding: 28px 24px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.voicey-cookie-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #000;
}

.voicey-cookie-modal__logo img {
  max-width: 120px;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

.voicey-cookie-modal__intro {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: #000;
}

.voicey-cookie-modal__intro a {
  color: var(--purple_crl, #680fa7);
  text-decoration: underline;
}

.voicey-cookie-modal__title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  color: #000;
}

.voicey-cookie-accordion {
  border-top: 1px solid #e8e8e8;
  margin-bottom: 20px;
}

.voicey-cookie-accordion__item {
  border-bottom: 1px solid #e8e8e8;
}

.voicey-cookie-accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #000;
}

.voicey-cookie-accordion__icon {
  flex: 0 0 18px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

.voicey-cookie-accordion__label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.voicey-cookie-accordion__status {
  font-size: 13px;
  font-weight: 600;
  color: #1a5fb4;
  white-space: nowrap;
}

.voicey-cookie-accordion__body {
  padding: 0 0 14px 28px;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}

.voicey-cookie-accordion__body[hidden] {
  display: none;
}

.voicey-cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.voicey-cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.voicey-cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.2s;
  cursor: pointer;
}

.voicey-cookie-toggle__slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.voicey-cookie-toggle input:checked+.voicey-cookie-toggle__slider {
  background: #2e9e4f;
}

.voicey-cookie-toggle input:checked+.voicey-cookie-toggle__slider::before {
  transform: translateX(20px);
}

.voicey-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
}

.voicey-cookie-btn--primary {
  background: var(--purple_crl, #680fa7);
  color: #fff;
  border-color: var(--purple_crl, #680fa7);
}

.voicey-cookie-btn--secondary {
  background: #fff;
  color: #000;
  border-color: #ccc;
}

.voicey-cookie-btn--full {
  width: 100%;
  padding: 14px 18px;
}

.voicey-cookie-modal__powered {
  margin: 14px 0 0;
  text-align: right;
  font-size: 11px;
  color: #888;
}

.menu-footer a.voicey-cookie-settings-link,
a.voicey-cookie-settings-link {
  cursor: pointer;
}

@media (max-width: 767px) {
  .voicey-cookie-modal__panel {
    width: 100%;
    max-height: 92vh;
    padding: 24px 16px 16px;
  }

  .voicey-cookie-banner__actions .voicey-cookie-btn {
    width: 100%;
  }

  .voicey-cookie-banner__inner {
    flex-direction: column;
    align-items: center;
  }

  .voicey-cookie-banner__actions {
    padding-top: 10px;
  }

  .voicey-cookie-banner__actions,
  .voicey-cookie-banner__inner .voicey-cookies-mainss {
    flex: 0 0 100%;
  }

  .voicey-cookie-banner__text {
    text-align: center;
  }

  .voicey-cookie-banner {
    padding: 16px 16px;
  }
}