﻿/* ==========================================================
   Cookie Banner Styling — 1900s.org.uk
   Final formatting update
   ========================================================== */

/* --- Banner strip --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fffbe6; /* Soft cream background */
  border-top: 4px solid #b59a00; /* Stronger gold border */
  padding: 15px 20px;
  font-family: Calibri, Arial, sans-serif;
  font-size: 16px; /* larger text for readability */
  line-height: 1.5;
  color: #333;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  box-sizing: border-box;
  z-index: 10000;
  border-radius: 0; /* square edges */
  text-align: center;
  word-wrap: break-word;
  transform: translateY(100%);
  opacity: 0;
  animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#cookie-banner p {
  margin: 0 0 8px 0;
  color: #333;
  text-align: center; /* centre text */
}

/* --- Buttons --- */
#cookie-banner button {
  margin: 4px;
  padding: 10px 15px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #f6d95a;
  color: #333;
  transition: opacity 0.2s ease;
}

#cookie-banner button:hover {
  opacity: 0.85;
}

/* --- Overlay (for modal) --- */
#cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
  display: none;
}

/* --- Modal box --- */
#cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: none;
  background: none;   /* no background to remove double box */
  border: none;       /* remove any border from outer box */
  box-shadow: none;   /* ensure no extra shadow */
}

/* Inner visible box only */
#cookie-modal-box {
  background: #fffbe6; /* same colour as banner */
  border: 3px solid #b59a00;
  border-radius: 10px;
  padding: 20px 25px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  font-family: Calibri, Arial, sans-serif;
  color: #333;
}

#cookie-modal-box h2 {
  margin-top: 0;
  color: #333;
  text-align: center;
}

#cookie-modal-box label {
  display: block;
  margin-bottom: 8px;
  color: #333;
}

#cookie-modal-box button {
  margin-top: 10px;
  margin-right: 10px;
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: #f6d95a;
  color: #333;
  cursor: pointer;
}

#cookie-modal-box button:hover {
  opacity: 0.85;
}

/* --- Footer link --- */
#cookie-settings-link {
  font-size: 13px;
  color: #555;
  text-decoration: underline;
  cursor: pointer;
}

#cookie-settings-link:hover {
  color: #000;
}

/* Locks page scrolling and interaction while cookie banner is active */
.body-locked {
  overflow: hidden;
  height: 100vh;
  pointer-events: none;  /* disables clicking anywhere */
}

/* Allow interaction with the banner itself */
#cookie-banner {
  pointer-events: auto;
}
