/* ============================================================
   STUDIO BEAUTIFY — SPINNING WHEEL POPUP
   ============================================================ */

#wheel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 24, 20, 0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: overlayIn 0.4s ease;
  padding: 1rem;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#wheel-popup {
  background: #FDFAF5;
  border-radius: 16px;
  padding: 2rem 1.8rem 2rem;
  width: 100%;
  max-width: 360px;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 64px rgba(28,24,20,0.25);
  animation: popupIn 0.45s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes popupIn {
  from { transform: scale(0.8) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

#wheel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #F7F1E8;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  color: #A0907A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#wheel-close:hover { background: #EDE4D3; }

.wheel-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #B8966E;
  margin-bottom: 0.4rem;
}

.wheel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 300;
  color: #1C1814;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.wheel-title em { font-style: italic; color: #B8966E; }

.wheel-sub {
  font-size: 0.78rem;
  color: #A0907A;
  margin-bottom: 1.4rem;
}

/* WHEEL CANVAS WRAP */
#wheel-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 1.4rem;
}

#wheel-canvas {
  border-radius: 50%;
  box-shadow: 0 6px 28px rgba(28,24,20,0.18);
  display: block;
}

#wheel-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.6rem;
  color: #1C1814;
  filter: drop-shadow(0 2px 4px rgba(28,24,20,0.25));
  z-index: 2;
  line-height: 1;
}

#wheel-spin-btn {
  background: #1C1814;
  color: #FDFAF5;
  border: none;
  padding: 0.9rem 2.8rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-bottom: 0.8rem;
}
#wheel-spin-btn:hover { background: #8B6D4A; }
#wheel-spin-btn:disabled {
  background: #DDD0BB;
  color: #A0907A;
  cursor: not-allowed;
}

.wheel-disclaimer {
  font-size: 0.68rem;
  color: #A0907A;
}

/* RESULT PANEL */
#wheel-panel-result { animation: popupIn 0.4s ease; }

#wheel-result-icon {
  font-size: 3rem;
  margin-bottom: 0.6rem;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

#wheel-code-box {
  background: #F7F1E8;
  border: 1.5px dashed #B8966E;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.2rem 0;
  cursor: pointer;
  transition: background 0.2s;
}
#wheel-code-box:hover { background: #EDE4D3; }

.wheel-code-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #A0907A;
  margin-bottom: 0.4rem;
}

#wheel-code {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1C1814;
  letter-spacing: 0.2em;
  margin-bottom: 0.2rem;
}

#wheel-copy-msg {
  font-size: 0.7rem;
  color: #A0907A;
}
#wheel-copy-msg.copied { color: #2d6a4f; }

.wheel-result-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: #6B5D4A;
  margin-bottom: 0;
}

.wheel-result-note {
  font-size: 0.72rem;
  color: #A0907A;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.wheel-cta-btn {
  background: #B8966E;
  color: #fff;
  border: none;
  padding: 0.9rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}
.wheel-cta-btn:hover { background: #8B6D4A; }

/* MOBILE */
@media (max-width: 420px) {
  #wheel-popup { padding: 1.6rem 1.2rem; }
  #wheel-wrap { width: 220px; height: 220px; }
  #wheel-canvas { width: 220px; height: 220px; }
  .wheel-title { font-size: 1.6rem; }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  padding: 0 1rem 1rem;
  display: none;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}
#cookie-banner.visible {
  transform: translateY(0);
}
#cookie-content {
  background: #1C1814;
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 780px;
  width: 100%;
  box-shadow: 0 -4px 32px rgba(28,24,20,0.18);
  flex-wrap: wrap;
}
#cookie-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
#cookie-text {
  flex: 1;
  min-width: 200px;
}
#cookie-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #FDFAF5;
  margin-bottom: 0.2rem;
}
#cookie-desc {
  font-size: 0.78rem;
  color: rgba(253,250,245,0.55);
  line-height: 1.6;
}
#cookie-desc strong {
  color: #B8966E;
}
#cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-btn-accept {
  background: #B8966E;
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.cookie-btn-accept:hover { background: #8B6D4A; }
.cookie-btn-decline {
  background: transparent;
  color: rgba(253,250,245,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.65rem 1.1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.cookie-btn-decline:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(253,250,245,0.7);
}

@media(max-width: 560px) {
  #cookie-content { flex-direction: column; text-align: center; }
  #cookie-actions { width: 100%; }
  .cookie-btn-accept, .cookie-btn-decline { flex: 1; }
}
