.tobo-cookie-consent {
  --tobo-primary: #111827;
  --tobo-accent: #d4a43d;
  --tobo-text: #1f2937;
  --tobo-muted: #4b5563;
  position: relative;
  z-index: 999999;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.tobo-cookie-consent [hidden] {
  display: none !important;
}

.tobo-cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
}

.tobo-cookie-banner,
.tobo-cookie-modal__panel,
.tobo-cookie-placeholder,
.tobo-cookie-fab,
.tobo-cookie-shortcode-button,
.tobo-privacy-notice {
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.tobo-cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  align-items: end;
  padding: 24px;
  background: linear-gradient(135deg, #fffdf8, #ffffff);
  border: 1px solid rgba(212, 164, 61, 0.24);
  border-radius: 24px;
}

.tobo-cookie-banner__eyebrow {
  margin: 0 0 8px;
  color: var(--tobo-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tobo-cookie-banner h2,
.tobo-cookie-modal h2,
.tobo-cookie-panel h3 {
  margin: 0 0 10px;
  color: var(--tobo-primary);
}

.tobo-cookie-banner h2,
.tobo-cookie-modal h2 {
  font-size: 28px;
  line-height: 1.15;
}

.tobo-cookie-banner p,
.tobo-cookie-modal p,
.tobo-cookie-group small,
.tobo-privacy-notice p {
  margin: 0;
  color: var(--tobo-text);
  line-height: 1.6;
}

.tobo-cookie-summary {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--tobo-muted);
}

.tobo-cookie-summary li {
  margin: 4px 0;
}

.tobo-cookie-banner__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.tobo-cookie-banner__links a,
.tobo-cookie-panel a,
.tobo-cookie-placeholder button,
.tobo-cookie-fab {
  color: var(--tobo-primary);
}

.tobo-cookie-banner__actions,
.tobo-cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.tobo-btn,
.tobo-cookie-shortcode-button,
.tobo-cookie-fab,
.tobo-cookie-placeholder button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tobo-btn:hover,
.tobo-cookie-shortcode-button:hover,
.tobo-cookie-fab:hover,
.tobo-cookie-placeholder button:hover {
  transform: translateY(-1px);
}

.tobo-btn--primary {
  background: var(--tobo-primary);
  border-color: var(--tobo-primary);
  color: #ffffff;
}

.tobo-btn--secondary {
  background: #f8f3e6;
  border-color: rgba(212, 164, 61, 0.45);
  color: var(--tobo-primary);
}

.tobo-btn--ghost {
  background: #ffffff;
  border-color: #d1d5db;
  color: var(--tobo-primary);
}

.tobo-cookie-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tobo-cookie-modal__panel {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.tobo-cookie-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.tobo-cookie-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.tobo-cookie-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.tobo-cookie-panel--notice {
  margin-top: 18px;
}

.tobo-cookie-modal__intro,
.tobo-cookie-modal__note {
  margin: 0 0 18px;
  color: var(--tobo-muted);
}

.tobo-cookie-close {
  width: 40px;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: var(--tobo-primary);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.tobo-cookie-groups {
  display: grid;
  gap: 14px;
}

.tobo-cookie-group {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: #fffdf8;
  border: 1px solid rgba(212, 164, 61, 0.24);
}

.tobo-cookie-group__copy {
  display: grid;
  gap: 6px;
}

.tobo-cookie-group__copy small {
  color: var(--tobo-muted);
}

.tobo-cookie-toggle {
  position: relative;
  display: inline-flex;
  width: 56px;
  height: 32px;
}

.tobo-cookie-toggle input {
  position: absolute;
  opacity: 0;
}

.tobo-cookie-toggle__slider {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 999px;
  background: #d1d5db;
}

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

.tobo-cookie-toggle input:checked + .tobo-cookie-toggle__slider {
  background: var(--tobo-primary);
}

.tobo-cookie-toggle input:checked + .tobo-cookie-toggle__slider::after {
  transform: translateX(24px);
}

.tobo-cookie-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-color: rgba(212, 164, 61, 0.35);
  z-index: 1000000;
}

.tobo-cookie-placeholder {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin: 16px 0;
  padding: 18px;
  border-radius: 20px;
  background: #fffdf8;
  border: 1px dashed rgba(212, 164, 61, 0.6);
}

.tobo-cookie-shortcode-button {
  background: var(--tobo-primary);
  color: #ffffff;
}

.tobo-privacy-notice {
  margin: 16px 0;
  padding: 18px;
  border-radius: 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.tobo-cookie-status {
  display: inline-block;
  color: var(--tobo-muted);
}

@media (max-width: 900px) {
  .tobo-cookie-banner {
    grid-template-columns: 1fr;
  }

  .tobo-cookie-modal__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .tobo-cookie-banner {
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px) + 84px);
    padding: 18px;
    border-radius: 20px;
  }

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

  .tobo-cookie-modal {
    padding: 12px;
  }

  .tobo-cookie-modal__panel {
    padding: 20px;
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px;
  }

  .tobo-cookie-modal__footer {
    position: sticky;
    bottom: 0;
    padding-top: 14px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px) + 22px);
    background: #ffffff;
  }

  .tobo-cookie-group {
    align-items: flex-start;
  }

  .tobo-cookie-fab {
    left: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px) + 84px);
  }
}
