/**
 * August Office GDPR Cookies
 * Neutral default styles for the banner, preferences modal, and reopen link.
 */

.august-office-gdpr-banner,
.august-office-gdpr-modal,
.august-office-gdpr-preferences-link {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.august-office-gdpr-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  z-index: 99999;
  color: #f8f8f6;
}

.august-office-gdpr-banner--bottom {
  bottom: 16px;
}

.august-office-gdpr-banner--top {
  top: 16px;
}

.august-office-gdpr-banner__inner {
  margin: 0 auto;
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(20, 24, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(15, 22, 33, 0.35);
}

.august-office-gdpr-banner__copy {
  flex: 1 1 440px;
  min-width: 0;
}

.august-office-gdpr-banner__title {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.3;
  color: #ffffff;
}

.august-office-gdpr-banner__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(248, 248, 246, 0.92);
}

.august-office-gdpr-banner__text a {
  color: #8fd0ff;
  text-decoration: underline;
}

.august-office-gdpr-banner__actions,
.august-office-gdpr-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.august-office-gdpr-banner__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.august-office-gdpr-banner__btn:hover,
.august-office-gdpr-banner__btn:focus {
  transform: translateY(-1px);
}

.august-office-gdpr-banner__btn--primary {
  background: #8fd0ff;
  border-color: #8fd0ff;
  color: #162130;
}

.august-office-gdpr-banner__btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: #f8f8f6;
}

.august-office-gdpr-banner[hidden],
.august-office-gdpr-modal[hidden] {
  display: none !important;
}

.august-office-gdpr-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.august-office-gdpr-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 16, 0.58);
}

.august-office-gdpr-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 22px;
  background: #ffffff;
  color: #1a2431;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(13, 23, 38, 0.24);
}

.august-office-gdpr-modal__close {
  appearance: none;
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 33, 48, 0.08);
  color: #162130;
  cursor: pointer;
}

.august-office-gdpr-modal__title {
  margin: 0 0 12px;
  font-size: 1.4rem;
  line-height: 1.2;
}

.august-office-gdpr-modal__intro {
  margin-bottom: 22px;
  color: #4c5a69;
  line-height: 1.6;
}

.august-office-gdpr-modal__categories {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.august-office-gdpr-modal__category {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid #d9e1e8;
  border-radius: 16px;
  background: #f8fafc;
}

.august-office-gdpr-modal__category-title {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.2;
}

.august-office-gdpr-modal__category-description {
  margin: 0;
  color: #556273;
  line-height: 1.55;
}

.august-office-gdpr-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
}

.august-office-gdpr-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.august-office-gdpr-toggle__track {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #c6d1db;
  transition: background-color 0.15s ease;
}

.august-office-gdpr-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(21, 30, 43, 0.18);
  transition: transform 0.15s ease;
}

.august-office-gdpr-toggle input:checked + .august-office-gdpr-toggle__track {
  background: #0f8a5f;
}

.august-office-gdpr-toggle input:checked + .august-office-gdpr-toggle__track::after {
  transform: translateX(22px);
}

.august-office-gdpr-toggle input:disabled + .august-office-gdpr-toggle__track {
  background: #88b9a4;
  opacity: 0.9;
}

.august-office-gdpr-preferences-link-wrap {
  margin: 18px 0 0;
  text-align: center;
}

.august-office-gdpr-preferences-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.95rem;
}

.august-office-gdpr-modal-open {
  overflow: hidden;
}

/* Keep WooCommerce checkout / sticky CTAs clear of the fixed banner. */
body.august-office-gdpr-banner-visible {
  padding-bottom: 140px;
}

@media (max-width: 782px) {
  body.august-office-gdpr-banner-visible {
    padding-bottom: 220px;
  }

  .august-office-gdpr-banner {
    left: 12px;
    right: 12px;
  }

  .august-office-gdpr-banner__inner,
  .august-office-gdpr-modal__category {
    flex-direction: column;
    align-items: stretch;
  }

  .august-office-gdpr-banner__actions,
  .august-office-gdpr-modal__actions {
    width: 100%;
  }

  .august-office-gdpr-banner__btn {
    width: 100%;
    justify-content: center;
  }
}
