:root {
  --cc-primary: #F18500; /* brand primary color */
  --cc-text: #222;
  --cc-muted: #666;
  --cc-bg: #ffffff;
  --cc-border: #e6e6e6;
  --cc-overlay: rgba(0,0,0,0.5);
}

/* Banner */
.cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: var(--cc-bg);
  color: var(--cc-text);
  border-top: 1px solid var(--cc-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  font-size: 14px;
}
.cc-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.cc-banner__content {
  flex: 1 1 auto;
}
.cc-banner__content p {
  margin: 0;
  line-height: 1.6;
}
.cc-banner__content a {
  color: var(--cc-primary);
  text-decoration: underline;
}
.cc-banner__actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

/* Buttons */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  min-width: 120px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--cc-border);
  background: #fff;
  color: var(--cc-text);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cc-btn:hover { background: #ffffff; color: var(--cc-primary); }
.cc-btn:focus { outline: 2px solid var(--cc-primary); outline-offset: 1px; }

.cc-btn--primary {
  background: var(--cc-primary);
  border-color: var(--cc-primary);
  color: #fff;
}

.cc-btn--outline {
  background: #fff;
}

/* Close (X) */
.cc-banner__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--cc-muted);
  cursor: pointer;
}
.cc-banner__close:hover { color: var(--cc-text); }

/* Mobile layout: three buttons side-by-side */
@media (max-width: 640px) {
  .cc-banner__inner { flex-direction: column; align-items: stretch; }
  .cc-banner__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
  .cc-btn { min-width: 0; }
}

/* Modal */
.cc-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--cc-overlay);
  display: none;
  z-index: 100000;
}
.cc-modal-overlay[aria-hidden="false"] { display: block; }

.cc-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, calc(100% - 24px));
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.cc-modal__header { position: relative; padding: 12px 16px; border-bottom: 1px solid var(--cc-border); }
.cc-modal__title { margin: 0; font-size: 16px; font-weight: 700; }
.cc-modal__close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: none; background: transparent; color: var(--cc-muted); cursor: pointer; }
.cc-modal__close:hover { color: var(--cc-text); }
.cc-modal__body { padding: 16px; }
.cc-modal__footer { padding: 12px 16px; border-top: 1px solid var(--cc-border); display: flex; gap: 8px; justify-content: flex-end; }

/* Toggles */
.cc-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}
.cc-toggle + .cc-toggle { border-top: 1px solid var(--cc-border); }
.cc-toggle__label { font-weight: 700; }
.cc-toggle__desc { color: var(--cc-muted); font-size: 13px; margin-top: 2px; }

.cc-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .2s; border-radius: 24px; }
.cc-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .2s; border-radius: 50%; }
.cc-switch input:checked + .cc-slider { background-color: var(--cc-primary); }
.cc-switch input:checked + .cc-slider:before { transform: translateX(20px); }
.cc-switch input:disabled + .cc-slider { background-color: #e0e0e0; cursor: not-allowed; }

/* Utility hidden */
.cc-hidden { display: none !important; }
