:root {
  --sc-cookie-bg: #111111;
  --sc-cookie-panel: #1a1a1a;
  --sc-cookie-text: #f5f5f5;
  --sc-cookie-muted: #cfcfcf;
  --sc-cookie-border: rgba(255,255,255,0.12);
  --sc-cookie-primary: #ffffff;
  --sc-cookie-primary-text: #111111;
  --sc-cookie-secondary: transparent;
}

#sc-cookie-banner,
#sc-cookie-manage {
  font-family: Arial, Helvetica, sans-serif;
}

#sc-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  color: var(--sc-cookie-text);
}

#sc-cookie-banner[hidden] {
  display: none !important;
}

.sc-cookie-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--sc-cookie-bg);
  border: 1px solid var(--sc-cookie-border);
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.sc-cookie-content {
  padding: 20px;
}

.sc-cookie-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.sc-cookie-text {
  margin: 0;
  color: var(--sc-cookie-muted);
  line-height: 1.6;
  font-size: 15px;
}

.sc-cookie-text a,
.sc-cookie-settings a {
  color: var(--sc-cookie-text);
  text-decoration: underline;
}

.sc-cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.sc-cookie-btn {
  appearance: none;
  border: 1px solid var(--sc-cookie-border);
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.sc-cookie-btn:hover {
  transform: translateY(-1px);
}

.sc-cookie-btn:focus-visible,
.sc-cookie-switch input:focus-visible + span {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.sc-cookie-btn--primary {
  background: var(--sc-cookie-primary);
  color: var(--sc-cookie-primary-text);
}

.sc-cookie-btn--secondary {
  background: var(--sc-cookie-secondary);
  color: var(--sc-cookie-text);
}

.sc-cookie-settings {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--sc-cookie-border);
}

.sc-cookie-settings[hidden] {
  display: none !important;
}

.sc-cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sc-cookie-option:last-child {
  border-bottom: 0;
}

.sc-cookie-option strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.sc-cookie-option p {
  margin: 0;
  color: var(--sc-cookie-muted);
  font-size: 14px;
  line-height: 1.5;
}

.sc-cookie-switch {
  position: relative;
  min-width: 52px;
}

.sc-cookie-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.sc-cookie-switch span {
  display: block;
  width: 52px;
  height: 30px;
  background: #4a4a4a;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}

.sc-cookie-switch span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: 3px;
  left: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.sc-cookie-switch input:checked + span {
  background: #888888;
}

.sc-cookie-switch input:checked + span::after {
  transform: translateX(22px);
}

.sc-cookie-switch input:disabled + span {
  background: #6a6a6a;
  opacity: 0.75;
}

#sc-cookie-manage {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99998;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

#sc-cookie-manage[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  #sc-cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .sc-cookie-content {
    padding: 16px;
  }

  .sc-cookie-title {
    font-size: 19px;
  }

  .sc-cookie-actions {
    flex-direction: column;
  }

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

  .sc-cookie-option {
    align-items: center;
  }
}
