/*
 * Cookie consent banner (cookieconsent 3.1.0, initialised in header.php) in the Upqor theme:
 * a floating card at the bottom - navy text, blue/gold gradient "I Accept", outline "Decline".
 * The library's own stylesheet is not loaded, so these rules are its complete styling.
 */
.cc-window {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 32px));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 22px 18px 20px;
  background: #ffffff;
  color: #14213d;
  border: 1px solid rgba(31, 94, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(7, 21, 45, 0.18), 0 2px 6px rgba(7, 21, 45, 0.06);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* gold-to-blue accent strip on the left, like the site's highlight cards */
.cc-window::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #1f5eff, #c9a24a);
}

.cc-window.cc-invisible {
  opacity: 0;
  transform: translate(-50%, 12px);
}

.cc-message {
  flex: 1 1 auto;
  margin: 0;
  color: #4b5a73;
}

.cc-link {
  display: inline;
  margin-left: 2px;
  padding: 0;
  color: #1f5eff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 1;
}

.cc-link:hover,
.cc-link:focus {
  color: #07152d;
}

.cc-compliance {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cc-btn:focus-visible {
  outline: 3px solid rgba(31, 94, 255, 0.35);
  outline-offset: 2px;
}

.cc-btn.cc-deny {
  background: #ffffff;
  color: #14213d;
  border-color: #d6deeb;
}

.cc-btn.cc-deny:hover {
  border-color: #14213d;
  color: #07152d;
}

.cc-btn.cc-allow {
  background: linear-gradient(135deg, #07152d, #1f5eff 70%, #c9a24a);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 94, 255, 0.28);
}

.cc-btn.cc-allow:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 94, 255, 0.36);
  color: #ffffff;
}

/* "change my choice" tab: hidden on the site (see header.php) */
.cc-revoke {
  display: none !important;
}

@media (max-width: 767px) {
  .cc-window {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    bottom: 12px;
    padding: 16px 16px 16px 18px;
    border-radius: 16px;
    font-size: 13px;
  }

  .cc-compliance {
    gap: 8px;
  }

  .cc-btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-window,
  .cc-btn {
    transition: none;
  }
}
