* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  min-height: 100vh;
}

/* --- Demo page footer link --- */
.page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  flex-direction: column;
  gap: 16px;
}

.customize-cookies-link {
  background: none;
  border: none;
  color: #0f62fe;
  font-size: 16px;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.customize-cookies-link:hover {
  color: #0043ce;
}

/* --- Overlay --- */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100000000;
}

.cookie-overlay.open {
  display: flex;
}

/* --- Modal --- */
.cookie-modal {
  background: #ff2f25;
  color: #ffffff;
  width: 100%;
  max-width: 1340px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 48px 44px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.cookie-modal::-webkit-scrollbar {
  width: 10px;
}

.cookie-modal::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}

/* --- Logo --- */
.cookie-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
}

.cookie-logo .tcs-mark {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.cookie-logo .tcs-name {
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

/* --- Close --- */
.cookie-close {
  position: absolute;
  top: 34px;
  right: 40px;
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s;
}

.cookie-close:hover {
  color: #ffffff;
}

/* --- Headings & text --- */
.cookie-modal h1 {
  font-size: 34px;
  font-weight: 400;
  margin-bottom: 22px;
}

.cookie-intro {
  font-size: 16px;
  line-height: 1.9;
  color: #e6e6e6;
  max-width: 1250px;
  margin-bottom: 26px;
}

.more-info {
  display: inline-block;
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
  margin-bottom: 44px;
}

.more-info:hover {
  text-decoration: underline;
}

.cookie-modal h2 {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 28px;
}

/* --- Accordion categories --- */
.cookie-categories {
  border-top: 1px solid #ff7900;
  margin-bottom: 28px;
}

.cookie-cat {
  border-bottom: 1px solid #ff7900;
}

.cookie-cat-head {
  width: 100%;
  background: none;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.cookie-cat-arrow {
  font-size: 22px;
  line-height: 1;
  width: 16px;
  flex-shrink: 0;
  text-align: center;
}

.cookie-cat-arrow::before {
  content: "+";
}

.cookie-cat.open .cookie-cat-arrow::before {
  content: "\2212"; /* minus sign */
}

.cookie-cat-title {
  font-size: 19px;
  flex: 1;
}

.cookie-cat-status {
  font-size: 15px;
  color: #b3b3b3;
  margin-right: 8px;
}

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

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

.cookie-slider {
  position: absolute;
  inset: 0;
  background: #4d4d4d;
  border-radius: 24px;
  transition: background 0.2s;
}

.cookie-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.cookie-toggle input:checked+.cookie-slider {
  background: #0f62fe;
}

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

.cookie-toggle input:disabled+.cookie-slider {
  background: #0f62fe;
  opacity: 0.55;
  cursor: not-allowed;
}

.cookie-cat-body {
  display: none;
  padding: 0 4px 24px 34px;
  font-size: 15px;
  line-height: 1.8;
  color: #cccccc;
  max-width: 1180px;
}

.cookie-cat.open .cookie-cat-body {
  display: block;
}

/* --- Footer / actions --- */
.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-btn {
  background: none;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 30px;
  padding: 16px 40px;
  font-size: 17px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.cookie-btn:hover {
  background: #ffffff;
  color: #000000;
}

@media (max-width: 640px) {
  .cookie-modal {
    padding: 28px 20px 32px;
  }

  .cookie-modal h1 {
    font-size: 26px;
  }

  .cookie-modal h2 {
    font-size: 24px;
  }

  .cookie-intro {
    font-size: 15px;
    line-height: 1.75;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-btn {
    width: 100%;
  }
}