/* ------------------------------------------------
   Banner
   ------------------------------------------------ */
#cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #111;
  color: #ccc;
  font-family: 'Open Sans', sans-serif;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.5);
}

.cc-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cc-banner__text {
  flex: 1 1 400px;
  font-size: 14px;
  line-height: 1.6;
}

.cc-banner__text a {
  color: #f66c00;
  text-decoration: underline;
}

.cc-banner__text a:hover {
  color: #dc6100;
}

.cc-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ------------------------------------------------
   Shared button styles
   ------------------------------------------------ */
.cc-btn {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
}

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

.cc-btn--accept {
  background: #f66c00;
  color: #fff;
}

.cc-btn--accept:hover {
  background: #dc6100;
}

.cc-btn--reject {
  background: transparent;
  color: #ccc;
  border: 1px solid #444;
}

.cc-btn--reject:hover {
  border-color: #888;
  color: #fff;
}

.cc-btn--customize {
  background: transparent;
  color: #f66c00;
  border: 1px solid #f66c00;
}

.cc-btn--customize:hover {
  background: rgba(246, 108, 0, 0.1);
}

.cc-btn--save {
  background: #f66c00;
  color: #fff;
}

.cc-btn--save:hover {
  background: #dc6100;
}

/* ------------------------------------------------
   Modal overlay
   ------------------------------------------------ */
#cc-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.65);
  font-family: 'Open Sans', sans-serif;
}

.cc-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #191c28;
  color: #ddd;
  border-radius: 8px;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  border: 1px solid #2a2d3a;
}

.cc-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
}

.cc-modal__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.cc-modal__close {
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.cc-modal__close:hover {
  color: #fff;
}

.cc-modal__body {
  padding: 16px 24px 24px;
}

.cc-modal__description {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #aaa;
}

.cc-category {
  border-top: 1px solid #2a2d3a;
  padding: 16px 0;
}

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

.cc-category__name {
  font-size: 15px;
  font-weight: 600;
  color: #eee;
}

.cc-category__desc {
  font-size: 13px;
  color: #888;
  margin-top: 6px;
  line-height: 1.5;
}

.cc-badge {
  font-size: 11px;
  font-weight: 600;
  background: #11123c;
  color: #f66c00;
  padding: 3px 8px;
  border-radius: 3px;
}

/* ------------------------------------------------
   Toggle switch
   ------------------------------------------------ */
.cc-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-toggle__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #3a3d4a;
  border-radius: 24px;
  transition: background 0.2s;
}

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

.cc-toggle input:checked + .cc-toggle__slider {
  background: #f66c00;
}

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

.cc-modal__footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 24px 20px;
  flex-wrap: wrap;
}

/* ------------------------------------------------
   Cookie Policy page (/cookie-policy/)
   ------------------------------------------------ */
.cc-policy {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #333;
}

.cc-policy p {
  margin: 0 0 20px;
}

.cc-policy a {
  color: #f66c00;
  text-decoration: underline;
}

.cc-policy a:hover {
  color: #dc6100;
}

.cc-policy__updated {
  font-size: 14px;
  color: #666;
  margin-bottom: 28px !important;
}

.cc-policy__h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 40px 0 16px;
  color: #111;
}

.cc-policy__h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 32px 0 12px;
  color: #222;
}

.cc-policy__table-wrap {
  overflow-x: auto;
  margin: 16px 0 32px;
}

.cc-policy__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  table-layout: fixed;
}

.cc-policy__table th,
.cc-policy__table td {
  text-align: left;
  padding: 12px 16px;
  vertical-align: top;
}

.cc-policy__table th {
  font-weight: 600;
  color: #111;
  background: #f5f5f5;
  border-bottom: 2px solid #ddd;
  white-space: nowrap;
}

.cc-policy__table td {
  border-bottom: 1px solid #eee;
  color: #444;
  word-break: break-word;
}

.cc-policy__table tr:last-child td {
  border-bottom: none;
}

.cc-policy__table code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
  color: #c62828;
}

.cc-policy__table th:first-child,
.cc-policy__table td:first-child {
  width: 28%;
}

.cc-policy__table th:nth-child(2),
.cc-policy__table td:nth-child(2) {
  width: 50%;
}

.cc-policy__table th:last-child,
.cc-policy__table td:last-child {
  width: 22%;
}

.cc-policy__cta {
  margin: 28px 0 36px;
}

/* ------------------------------------------------
   Responsive: policy page
   ------------------------------------------------ */
@media (max-width: 600px) {
  .cc-policy__table {
    table-layout: auto;
  }

  .cc-policy__table th:first-child,
  .cc-policy__table td:first-child,
  .cc-policy__table th:nth-child(2),
  .cc-policy__table td:nth-child(2),
  .cc-policy__table th:last-child,
  .cc-policy__table td:last-child {
    width: auto;
  }

  .cc-policy__table th,
  .cc-policy__table td {
    padding: 10px 12px;
  }

  .cc-policy__h2 {
    font-size: 20px;
    margin: 32px 0 12px;
  }

  .cc-policy__h3 {
    font-size: 16px;
    margin: 24px 0 10px;
  }
}

/* ------------------------------------------------
   Responsive: banner & modal
   ------------------------------------------------ */
@media (max-width: 600px) {
  .cc-banner__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 16px;
  }

  .cc-banner__actions {
    flex-direction: column;
  }

  .cc-btn {
    width: 100%;
    text-align: center;
  }

  .cc-modal__dialog {
    width: 95%;
  }

  .cc-modal__footer {
    flex-direction: column;
  }

  .cc-modal__footer .cc-btn {
    width: 100%;
    text-align: center;
  }
}
