/* ─── Cookie Consent Widget Styles ─── */

.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #333;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 10000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  font-size: 14px;
  line-height: 1.5;
}

.cc-banner--hidden {
  display: none !important;
}

.cc-banner p {
  margin: 0;
  flex: 1 1 60%;
  min-width: 240px;
}

.cc-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.cc-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.cc-btn:hover {
  opacity: 0.9;
}

.cc-btn--primary {
  background: #4CAF50;
  color: #fff;
}

.cc-btn--secondary {
  background: #666;
  color: #fff;
}

.cc-btn--link {
  background: transparent;
  color: #aaa;
  text-decoration: underline;
  padding: 8px 12px;
}

.cc-btn--link:hover {
  color: #fff;
}

/* ─── Mandatory Backdrop ─── */
.cc-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  backdrop-filter: blur(3px);
}

/* ─── Modal Overlay ─── */

.cc-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.cc-modal--hidden {
  display: none !important;
}

.cc-modal-card {
  background: #fff;
  color: #333;
  border-radius: 8px;
  width: 90%;
  max-width: 640px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 28px 32px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.cc-modal-card h2 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
}

/* ─── Category Toggles ─── */

.cc-category {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
}

.cc-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cc-category-header label {
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.cc-category-desc {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: #666;
}

/* ─── Toggle Switch ─── */

.cc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cc-toggle input {
  display: none;
}

.cc-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.3s;
}

.cc-toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.cc-toggle input:checked + .cc-toggle-slider {
  background: #4CAF50;
}

.cc-toggle input:checked + .cc-toggle-slider::before {
  transform: translateX(20px);
}

.cc-toggle--disabled {
  opacity: 0.6;
}

.cc-toggle--disabled .cc-toggle-slider {
  cursor: not-allowed;
}

/* ─── Cookie Details Table ─── */

.cc-cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}

.cc-cookies-table th,
.cc-cookies-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
}

.cc-cookies-table th {
  font-weight: 600;
  color: #555;
}

/* ─── Modal Footer ─── */

.cc-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.cc-modal-footer a {
  margin-right: auto;
  font-size: 13px;
  color: #4CAF50;
  text-decoration: underline;
  align-self: center;
}

.cc-modal-footer a:hover {
  color: #388E3C;
}

/* ─── Floating Settings Button ─── */

.cc-settings-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  border: 2px solid #555;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.cc-settings-btn:hover {
  transform: scale(1.1);
}

.cc-settings-btn--visible {
  display: flex;
}

/* ─── Print Hide ─── */

@media print {
  .cc-banner,
  .cc-modal,
  .cc-settings-btn {
    display: none !important;
  }
}
