/* ======================================================
   COOKIE BAR
====================================================== */

.fixed-cookies {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #4f6fb6;
  padding: 20px 32px;
  z-index: 9999;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.cookie-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-text {
  flex: 1;
}

.cookie-text p {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
}

.cookie-text a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

/* ======================================================
   BUTTONS
====================================================== */

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cookie-actions button {
  height: 46px;
  padding: 0 28px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.cookie-actions button:hover {
  background: #fff;
  color: #000;
}

.allow-btn {
  background: #fff !important;
  color: #000 !important;
}

/* ======================================================
   CLOSE BUTTON
====================================================== */

.close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
}

.close-btn:hover {
  background: rgba(255,255,255,0.22);
}

.close-btn img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* ======================================================
   COLORBOX MODAL
====================================================== */

.cookie-modal {
  width: 100%;
  max-width: 900px;
  background: #fff;
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

/* Left */

.cookie-sidebar {
  width: 240px;
  background: #f5f5f5;
  padding: 24px;
  border-right: 1px solid #ddd;
}

.cookie-sidebar h4 {
  margin-bottom: 20px;
  font-size: 16px;
}

.cookie-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cookie-sidebar li {
  padding: 12px 0;
  cursor: pointer;
  font-size: 15px;
  border-bottom: 1px solid #ddd;
}

.cookie-sidebar li.active {
  color: #0057ff;
  font-weight: 700;
}

/* Right */

.cookie-content {
  flex: 1;
  padding: 28px;
}

.cookie-content h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.cookie-content p {
  color: #555;
  line-height: 1.7;
}

/* Table */

.cookie-table {
  margin-top: 20px;
  overflow-x: auto;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
  font-size: 14px;
}

.cookie-table th {
  background: #f7f7f7;
}

/* Footer */

.cookie-footer {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.cookie-footer button {
  height: 42px;
  padding: 0 22px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
}

.accept-btn {
    background: #2dbb55;
}


/* Disabled Button */
.accept-btn:disabled {
    background: #8bf1a8;
    cursor: not-allowed;
    opacity: 0.7;
}

.reject-btn {
  background: #e53935;
}

.reject-btn:disabled {
    background: #fa7e7c;
    cursor: not-allowed;
    opacity: 0.7;
}
.save-btn {
  background: #0057ff;
}

/* ======================================================
   COLORBOX CUSTOM
====================================================== */

#colorbox,
#cboxOverlay,
#cboxWrapper {
  z-index: 999999 !important;
}

#cboxOverlay {
  background: rgba(0,0,0,0.65) !important;
}

#cboxContent {
  border-radius: 6px;
  overflow: hidden;
}

#cboxLoadedContent {
  padding: 0 !important;
}

#cboxClose {
  top: 14px !important;
  right: 14px !important;
  background: transparent !important;
  text-indent: 0 !important;
  color: #000 !important;
  font-size: 24px !important;
  width: 30px !important;
  height: 30px !important;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 768px) {

  .cookie-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .cookie-actions button {
    flex: 1;
  }

  .cookie-modal {
    flex-direction: column;
  }

  .cookie-sidebar {
    width: 100%;
  }

  .cookie-footer {
    flex-wrap: wrap;
  }

  .cookie-footer button {
    width: 100%;
  }

}

/* ======================================================
   HEADING + TOGGLE
====================================================== */

.cookie-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.cookie-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

/* ======================================================
   TOGGLE SWITCH
====================================================== */

.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider */

.slider {
  position: absolute;
  inset: 0;
  background: #d9d9d9;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s ease;
}

/* Circle */

.slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Active */

.switch input:checked + .slider {
  background: #0057ff;
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
}