/* Morelli Caffè — Analytics Cookie Consent */

.morelli-consent-banner[hidden] {
  display: none !important;
}

.morelli-consent-banner {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;

  width: calc(100% - 36px);
  max-width: 960px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  padding: 22px 26px;

  background: #211814;
  color: #f6f0e9;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;

  box-shadow: 0 12px 45px rgba(0,0,0,.35);

  font-family: inherit;
}

.morelli-consent-content {
  flex: 1;
  min-width: 0;
}

.morelli-consent-content strong {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.morelli-consent-content p {
  margin: 0;
  color: #ded4cc;
  font-size: 13px;
  line-height: 1.6;
}

.morelli-consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.morelli-consent-actions button {
  min-width: 112px;
  padding: 11px 16px;

  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;

  cursor: pointer;
  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.morelli-consent-actions button:hover {
  transform: translateY(-2px);
}

.morelli-consent-accept {
  background: #ff4024;
  color: #fff;
  border: 1px solid #ff4024;
}

.morelli-consent-accept:hover {
  background: #e7351b;
  border-color: #e7351b;
}

.morelli-consent-reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}

.morelli-consent-reject:hover {
  border-color: #fff;
}

.morelli-consent-settings {
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid rgba(128,128,128,.25);
}

.morelli-consent-settings h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.morelli-consent-settings p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
}

.morelli-consent-status {
  font-weight: 600;
}

.morelli-consent-settings .morelli-consent-actions {
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .morelli-consent-banner {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 19px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .morelli-consent-actions {
    width: 100%;
  }

  .morelli-consent-actions button {
    flex: 1;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .morelli-consent-actions button {
    transition: none;
  }
}
