/* consent-banner.css
   Modern floating-card version of the site consent banner
   (shared/consent-banner.js). Matches the MTD Falcon maroon/gold brand. */

#site-consent-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 880px;
  background: #ffffff;
  color: #1f1f23;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: inherit;
  animation: sc-slide-up 0.35s ease-out;
}

@keyframes sc-slide-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.sc-banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
}

.sc-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7a1f2b, #591420);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4c86b;
  font-size: 18px;
}

  .sc-banner-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  flex: 1 1 320px;
  color: #3a3a40;
}

.sc-banner-link {
  color: #7a1f2b;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 31, 43, 0.35);
}

.sc-banner-link:hover {
  border-bottom-color: #7a1f2b;
}

.sc-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.sc-btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.sc-btn:active {
  transform: scale(0.97);
}

.sc-btn-accept {
  background: linear-gradient(135deg, #7a1f2b, #591420);
  color: #fff;
  box-shadow: 0 4px 12px rgba(122, 31, 43, 0.35);
}

.sc-btn-accept:hover {
  box-shadow: 0 6px 16px rgba(122, 31, 43, 0.45);
}

.sc-btn-reject {
  background: #f4f4f6;
  color: #3a3a40;
  border-color: #e2e2e6;
}

.sc-btn-reject:hover {
  background: #ebebef;
}

@media (max-width: 640px) {
  #site-consent-banner {
    bottom: 12px;
    width: calc(100% - 24px);
    border-radius: 14px;
  }

  .sc-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
  }

  .sc-banner-icon {
    display: none;
  }

  .sc-banner-actions {
    width: 100%;
  }

  .sc-banner-text {
    flex-basis: auto;
  }

  .sc-btn {
    flex: 1;
  }
}

/* Keep the banner in the auth page's layout so it never covers either form. */
body.auth-page {
  height: auto;
  justify-content: safe center;
}

.auth-page > .shell {
  flex-shrink: 0;
}

.auth-page > #site-consent-banner {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  flex-shrink: 0;
  width: 100%;
  margin-top: 24px;
  animation: sc-auth-appear .35s ease-out;
}

@keyframes sc-auth-appear {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page > #site-consent-banner { animation: none; }
}
