:root {
  --primary-blue: #013650;
  --primary-blue-hover: #073142;
}

/* === Cookie Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #fff;
  color: #333;
  border-top: 1px solid #ddd;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  z-index: 10000;
  font-family: 'Segoe UI', sans-serif;
  padding: 15px 20px;
}

.cookie-banner-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.cookie-text h4 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: bold;
}

.cookie-text p {
  margin: 0;
  font-size: 14px;
}

.cookie-text a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-actions button {
  margin-left: 10px;
  padding: 8px 14px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#accept-all {
  background-color: var(--primary-blue);
  color: white;
}

#accept-all:hover {
  background-color: var(--primary-blue-hover);
}

#manage-cookies {
  background-color: #eee;
  color: #333;
}

#manage-cookies:hover {
  background-color: #ddd;
}

/* === Modal Overlay and Box === */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0,0,0,0.6);
}

.cookie-modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

.cookie-modal-content h2 {
  margin-top: 0;
  color: #203864;
  font-size: 22px;
}

.cookie-modal-content p,
.cookie-modal-content li {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.cookie-modal-content a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.cookie-modal-content a:hover {
  text-decoration: underline;
}

.cookie-buttons {
  margin-top: 20px;
  text-align: right;
}

.modal-accept-all {
  background-color: var(--primary-blue);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-accept-all:hover {
  background-color: var(--primary-blue-hover);
}

/* === Cookie Settings Panel === */
.cookie-section {
  border-top: 1px solid #eee;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.cookie-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 15px;
  color: #203864;
  cursor: pointer;
  padding: 6px 0;
}

.cookie-header .always-active {
  font-size: 12px;
  color: #888;
  font-weight: normal;
}

.cookie-header .toggle-arrow {
  font-size: 12px; /* smaller arrow */
  margin-left: 6px;
  color: #333;
  cursor: pointer;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.cookie-section.open .toggle-arrow {
  transform: rotate(180deg);
}

.cookie-desc {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.cookie-section.open .cookie-desc {
  display: block;
}

/* === Toggle switch === */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
  margin-left: auto;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-blue);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

/* Save button */
.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 25px;
}

.cookie-buttons button {
  padding: 10px 20px;
  font-weight: 600;
  background-color: #fff;
  border: 2px solid #333;
  color: #333;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.cookie-buttons button:hover {
  background-color: #203864;
  color: #fff;
  border-color: #203864;
}
