@charset "UTF-8";

/* ================================================
   SpeedCamerasUK - Cookie Consent Bar & Panel
   ================================================ */

/* --- Consent bar (fixed bottom strip) --- */
#scuk-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f7f7f5;
  border-top: 1px solid #ccc;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 99999;
  font-family: Arial, sans-serif;
  font-size: 12px;
  transition: transform .3s ease, opacity .3s ease;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.07);
}

#scuk-bar.scuk-hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

#scuk-bar-text {
  flex: 1;
  color: #555;
  line-height: 1.5;
  min-width: 160px;
}

#scuk-bar-text a {
  color: #185FA5;
  text-decoration: none;
}

#scuk-bar-text a:hover {
  text-decoration: underline;
}

#scuk-bar-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* --- Buttons --- */
.scuk-yes {
  background: #185FA5;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}

.scuk-yes:hover {
  background: #0C447C;
}

.scuk-no {
  background: none;
  color: #666;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
}

.scuk-no:hover {
  border-color: #888;
  color: #333;
}

/* --- Manage preferences panel --- */
#scuk-manage {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f7f7f5;
  border-top: 2px solid #0099ff;
  padding: 14px 16px 12px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  display: none;
  z-index: 99999;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
}

#scuk-manage.scuk-open {
  display: block;
}

#scuk-manage h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #003399;
}

/* --- Cookie category rows --- */
.scuk-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #e0e0e0;
}

.scuk-row:first-of-type {
  border-top: none;
}

.scuk-rname {
  font-weight: bold;
  font-size: 12px;
  color: #333;
}

.scuk-rdesc {
  font-size: 11px;
  color: #777;
  margin-top: 2px;
  line-height: 1.4;
}

/* --- "Always on" badge --- */
.scuk-always {
  font-size: 10px;
  color: #888;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 2px 7px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Toggle switches --- */
.scuk-toggle {
  position: relative;
  width: 34px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.scuk-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.scuk-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s;
}

.scuk-slider:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}

.scuk-toggle input:checked + .scuk-slider {
  background: #185FA5;
}

.scuk-toggle input:checked + .scuk-slider:before {
  transform: translateX(14px);
}

/* --- Panel action buttons row --- */
.scuk-panel-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}