/* COOKIE CONSENT CSS ADDED TO THE PAGES WHO DO NOT USE NEW-STYLE.CSS. THIS NEEDS TO BE FIXED AND IS ONLY TEMP WHILE I RECONFIGURE THE WEBSITE */

:root {
  --cc-bg: #ffffff;
  --cc-fg: #0f172a;
  --cc-muted: #475569;
  --cc-border: #e5e7eb;
  --cc-shadow: 0 10px 30px rgba(2, 6, 23, 0.15);
  --cc-radius: 14px;
  --cc-spacing: 14px;
  --cc-maxw: 1000px;
  --cc-primary: #0072ff;
  --cc-primary-hover: #00c1d0;
}

.cookie-policy h3 {
  margin: 30px 0 -10px 0;
  color: #272727;
  font-size: 20px;
}

.cookie-policy__indent {
  margin-left: 20px;
  margin-right: 20px;
  font-style: italic;
}

.cookie-policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 1em;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  font-family: "Hind", sans-serif;
}
.cookie-policy thead th {
  background: #f5f5f5;
  color: #222;
  font-weight: 600;
  padding: 0.75em 0.5em;
  border-bottom: 2px solid #ddd;
  text-align: left;
}
.cookie-policy tbody td {
  padding: 0.7em 0.5em;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.cookie-policy tbody tr:nth-child(even) {
  background: #fafbfc;
}
.cookie-policy tbody tr:hover {
  background: #f0f4f8;
}
.cookie-policy table a {
  color: #1a5dab;
  text-decoration: underline;
}
@media (max-width: 700px) {
  .cookie-policy table,
  .cookie-policy thead,
  .cookie-policy tbody,
  .cookie-policy th,
  .cookie-policy td,
  .cookie-policy tr {
    display: block;
  }
  .cookie-policy thead {
    display: none;
  }
  .cookie-policy tbody tr {
    margin-bottom: 1.2em;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    background: #fff;
  }
  .cookie-policy tbody td {
    border: none;
    position: relative;
    padding-left: 50%;
    min-height: 2.2em;
  }
  .cookie-policy tbody td:before {
    position: absolute;
    top: 0.7em;
    left: 0.7em;
    width: 45%;
    white-space: nowrap;
    font-weight: 600;
    color: #555;
  }
  .cookie-policy tbody td:nth-child(1):before {
    content: "Service";
  }
  .cookie-policy tbody td:nth-child(2):before {
    content: "Purpose";
  }
  .cookie-policy tbody td:nth-child(3):before {
    content: "Category";
  }
  .cookie-policy tbody td:nth-child(4):before {
    content: "Third-Party";
  }
  .cookie-policy tbody td:nth-child(5):before {
    content: "Provider Location";
  }
  .cookie-policy tbody td:nth-child(6):before {
    content: "Privacy Policy";
  }
}

/* COOKIE POP-UP */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  margin: 0 auto;
  max-width: var(--cc-maxw);
  background: var(--cc-bg);
  color: var(--cc-fg);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  padding: clamp(12px, 2vw, 18px);
}

.cookie-consent {
  opacity: 0;
  transform: translateY(40px);
  transition: none;
  animation: fadeInUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  /* Adjust duration and easing as needed */
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(40px);
  }
}

.cookie-consent.fade-out-down {
  animation: fadeOutDown 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.cookie-consent--hidden {
  display: none;
}

.cookie-consent__title {
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 700;
  margin: 0 0 6px 0;
}

.cookie-consent__text {
  margin: 0 0 12px 0;
  color: var(--cc-muted);
  line-height: 1.5;
  font-size: 14px;
}

.cookie-consent__text a {
  font-size: 14px;
}

.cookie-consent__content {
  align-self: center;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cc-btn {
  appearance: none;
  border: 1px solid var(--cc-border);
  background: #fff;
  color: var(--cc-fg);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.cc-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.cc-btn--primary {
  background: var(--cc-primary);
  color: #fff;
  border-color: var(--cc-primary);
}
.cc-btn--primary:hover {
  background: var(--cc-primary-hover);
  border-color: var(--cc-primary-hover);
}

.cc-btn--ghost {
  background: transparent;
}
.cc-btn--ghost:hover {
  background: #f8fafc;
}

.cc-link {
  color: var(--cc-primary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.cc-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .cookie-consent {
    grid-template-columns: 1fr;
  }
  .cookie-consent__actions {
    justify-content: flex-start;
  }
}
