/**
 * RISERVATI - Cookie Banner
 * Shared cookie consent banner styles
 */

/* ===== Cookie Banner ===== */
.riservati-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(255, 140, 26, 0.98), rgba(231, 116, 8, 0.98));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 3px solid rgba(255, 255, 255, 0.2);
  padding: 28px 24px;
  z-index: var(--z-cookie, 999999);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  animation: slideUpBanner 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUpBanner {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Banner Content */
.riservati-cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

/* Banner Text */
.riservati-cookie-text {
  flex: 1;
  color: #fff;
}

.riservati-cookie-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.riservati-cookie-text p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  opacity: 0.95;
}

.riservati-cookie-text a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  transition: opacity var(--transition-fast, 0.15s ease);
}

.riservati-cookie-text a:hover {
  opacity: 0.8;
}

/* Banner Actions */
.riservati-cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Banner Buttons */
.riservati-btn-cookie {
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition-slow, 0.3s ease);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-family: inherit;
}

.riservati-btn-accept {
  background: #fff;
  color: #F5A623;
}

.riservati-btn-accept:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.riservati-btn-reject {
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.riservati-btn-reject:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: #fff;
}

/* Settings Button */
.riservati-cookie-settings-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5A623, #d7752e);
  border: none;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.5);
  z-index: 99998;
  transition: all var(--transition-slow, 0.4s ease);
  display: none;
}

.riservati-cookie-settings-btn.show {
  display: block;
}

.riservati-cookie-settings-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.6);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .riservati-cookie-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .riservati-cookie-actions {
    width: 100%;
    flex-direction: column;
  }

  .riservati-btn-cookie {
    width: 100%;
  }

  .riservati-cookie-settings-btn {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}
