/* ═══════════════════════════════════════════════════════════════════════════
   Tube Plant Slovakia — Cookie Consent UI
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Shared button styles ─────────────────────────────────────────────────── */
.tps-btn {
  display: inline-block;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  font-family: inherit;
}
.tps-btn-primary {
  background: #50d8af;
  color: #fff;
  border-color: #50d8af;
}
.tps-btn-primary:hover { background: #38c49a; border-color: #38c49a; }

.tps-btn-secondary {
  background: transparent;
  color: #ccc;
  border-color: #555;
}
.tps-btn-secondary:hover { border-color: #50d8af; color: #50d8af; }

.tps-btn-ghost {
  background: transparent;
  color: #999;
  border-color: transparent;
  text-decoration: underline;
  padding-left: 4px;
  padding-right: 4px;
}
.tps-btn-ghost:hover { color: #50d8af; }

/* ── Cookie Banner ────────────────────────────────────────────────────────── */
#tps-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9900;
  background: #1c1c1c;
  color: #ddd;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 -3px 16px rgba(0,0,0,.35);
  flex-wrap: wrap;
}
#tps-cookie-banner .tps-cb-text { flex: 1; min-width: 220px; }
#tps-cookie-banner .tps-cb-text p { margin: 0; font-size: 13.5px; line-height: 1.55; }
#tps-cookie-banner .tps-cb-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Modal overlay ────────────────────────────────────────────────────────── */
#tps-cookie-modal { display: none; }
#tps-cookie-modal.tps-modal-open { display: block; }

.tps-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9950;
}
.tps-modal-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9960;
  background: #fff;
  border-radius: 8px;
  padding: 32px 28px 24px;
  width: 92%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
}
.tps-modal-box h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #1c1c1c;
}
.tps-modal-box > p {
  font-size: 13.5px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.55;
}

/* ── Cookie category row ──────────────────────────────────────────────────── */
.tps-cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #eee;
}
.tps-cookie-info { flex: 1; }
.tps-cookie-info strong {
  display: block;
  font-size: 14px;
  color: #1c1c1c;
  margin-bottom: 3px;
}
.tps-cookie-info p {
  margin: 0;
  font-size: 12.5px;
  color: #777;
  line-height: 1.5;
}
.tps-always-active {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #50d8af;
  background: #eafaf5;
  border-radius: 10px;
  padding: 1px 8px;
  margin-bottom: 4px;
}

/* ── Toggle switch ────────────────────────────────────────────────────────── */
.tps-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.tps-toggle input { opacity: 0; width: 0; height: 0; }
.tps-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background .25s;
}
.tps-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .25s;
}
.tps-toggle input:checked + .tps-toggle-slider { background: #50d8af; }
.tps-toggle input:checked + .tps-toggle-slider::before { transform: translateX(20px); }
.tps-toggle-disabled { opacity: .55; cursor: not-allowed; }

/* ── Modal buttons ────────────────────────────────────────────────────────── */
.tps-modal-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  align-items: center;
}

/* ── Footer legal links ───────────────────────────────────────────────────── */
.footer-legal-links {
  margin: 8px 0 4px;
  font-size: 13px;
  color: #aaa;
}
.footer-legal-links a, .footer-legal-links .tps-cookie-settings-link {
  color: #aaa;
  text-decoration: none;
  transition: color .2s;
}
.footer-legal-links a:hover,
.footer-legal-links .tps-cookie-settings-link:hover { color: #50d8af; }
.footer-legal-links .sep { margin: 0 6px; }

/* ── Form privacy checkbox ────────────────────────────────────────────────── */
.tps-privacy-consent {
  margin: 12px 0 16px;
}
.tps-privacy-consent .form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tps-privacy-consent .form-check-input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #50d8af;
}
.tps-privacy-consent .form-check-label {
  font-size: 13px;
  color: #555;
  cursor: pointer;
  line-height: 1.45;
}
.tps-privacy-consent .form-check-label a {
  color: #50d8af;
  text-decoration: underline;
}
.tps-privacy-consent .tps-consent-hint {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: #999;
  padding-left: 24px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #tps-cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; }
  #tps-cookie-banner .tps-cb-buttons { justify-content: stretch; }
  #tps-cookie-banner .tps-cb-buttons .tps-btn { flex: 1; text-align: center; }
  .tps-modal-buttons { flex-direction: column; }
  .tps-modal-buttons .tps-btn { width: 100%; text-align: center; }
}
