/* ==========================================================================
   W4Y Cookie Consent Banner
   ========================================================================== */

#w4y-consent-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9000;
  width: min(520px, calc(100vw - 32px));
  background: #16130e;
  border: 1px solid var(--wfy-border-strong, rgba(217, 185, 143, 0.24));
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 380ms ease, transform 380ms ease;
  font-family: 'Inter', sans-serif;
}

#w4y-consent-banner[hidden] {
  display: none;
}

#w4y-consent-banner.w4y-consent-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#w4y-consent-banner.w4y-consent-hide {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
}

.w4y-consent-body {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.w4y-consent-text {
  flex: 1;
  min-width: 0;
}

.w4y-consent-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wfy-gold-soft, #d9b98f);
  margin-bottom: 6px;
}

.w4y-consent-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--wfy-text-soft, rgba(255, 247, 235, 0.74));
}

.w4y-consent-services {
  color: var(--wfy-text-main, #f4efe7);
  font-weight: 500;
}

.w4y-consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.w4y-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: opacity 200ms ease, background 200ms ease;
  white-space: nowrap;
}

.w4y-consent-btn:hover {
  opacity: 0.85;
}

.w4y-consent-btn-accept {
  background: linear-gradient(135deg, var(--wfy-gold-mid, #c89b62), var(--wfy-gold-deep, #c9a96e));
  color: #080604;
}

.w4y-consent-btn-deny {
  background: transparent;
  color: var(--wfy-text-muted, rgba(255, 247, 235, 0.46));
  border: 1px solid var(--wfy-border-soft, rgba(217, 185, 143, 0.12));
}

.w4y-consent-btn-deny:hover {
  color: var(--wfy-text-soft, rgba(255, 247, 235, 0.74));
  border-color: var(--wfy-border-strong, rgba(217, 185, 143, 0.24));
  opacity: 1;
}

.w4y-consent-settings-link {
  font-size: 11px;
  color: var(--wfy-text-muted, rgba(255, 247, 235, 0.46));
  text-decoration: none;
  margin-left: auto;
  white-space: nowrap;
  transition: color 200ms ease;
}

.w4y-consent-settings-link:hover {
  color: var(--wfy-text-soft, rgba(255, 247, 235, 0.74));
}

@media (max-width: 480px) {
  #w4y-consent-banner {
    bottom: 16px;
    padding: 16px 16px;
    border-radius: 10px;
  }

  .w4y-consent-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .w4y-consent-btn {
    width: 100%;
    padding: 10px 18px;
  }

  .w4y-consent-settings-link {
    margin-left: 0;
    text-align: center;
    padding: 4px 0;
  }
}
