/* === Banner === */
.gsd-cc-banner {
  position: fixed;
  bottom: 24px;
  z-index: 99999;
  width: 328px;
  max-width: calc(100vw - 48px);
  font-family: "Inter", system-ui, sans-serif;
}

.gsd-cc-right {
  right: 24px;
}
.gsd-cc-left {
  left: 24px;
}

.gsd-cc-banner__inner {
  background: #160e44;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gsd-cc-banner__content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.gsd-cc-banner__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.gsd-cc-banner__text {
  margin: 0;
  color: white;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.gsd-cc-banner__accept {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  background: #da2128;
  color: white;
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.gsd-cc-banner__accept:hover {
  background: #c41e3a;
}

.gsd-cc-banner__settings {
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  align-self: center;
  transition: opacity 0.15s;
}

.gsd-cc-banner__settings:hover {
  opacity: 0.8;
}

/* === Modal Overlay === */
.gsd-cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* === Modal === */
.gsd-cc-modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gsd-cc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.gsd-cc-modal__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #160e44;
}

.gsd-cc-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.15s;
}

.gsd-cc-modal__close:hover {
  background: #f3f4f6;
}

.gsd-cc-modal__body {
  padding: 16px 24px;
  overflow-y: auto;
  flex: 1;
}

/* === Category Row === */
.gsd-cc-category {
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.gsd-cc-category:last-child {
  border-bottom: none;
}

.gsd-cc-category__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.gsd-cc-category__info {
  flex: 1;
  min-width: 0;
}

.gsd-cc-category__label {
  font-size: 16px;
  font-weight: 600;
  color: #160e44;
  display: block;
  margin-bottom: 4px;
}

.gsd-cc-category__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

/* === Toggle Switch === */
.gsd-cc-toggle {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-top: 2px;
}

.gsd-cc-toggle--locked {
  cursor: not-allowed;
  opacity: 0.7;
}

.gsd-cc-toggle__track {
  display: block;
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border-radius: 12px;
  position: relative;
  transition: background-color 0.2s;
  pointer-events: none;
}

.gsd-cc-toggle--on .gsd-cc-toggle__track {
  background: #da2128;
}

.gsd-cc-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.gsd-cc-toggle--on .gsd-cc-toggle__thumb {
  transform: translateX(20px);
}

/* === Modal Footer === */
.gsd-cc-modal__footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
  border-top: 1px solid #e5e7eb;
}

.gsd-cc-modal__save,
.gsd-cc-modal__accept-all {
  flex: 1;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 100px;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.gsd-cc-modal__save {
  background: white;
  color: #160e44;
  border: 1px solid #d1d5db;
}

.gsd-cc-modal__save:hover {
  background: #f3f4f6;
}

.gsd-cc-modal__accept-all {
  background: #da2128;
  color: white;
  border: none;
}

.gsd-cc-modal__accept-all:hover {
  background: #c41e3a;
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  .gsd-cc-toggle__track,
  .gsd-cc-toggle__thumb,
  .gsd-cc-banner__accept,
  .gsd-cc-modal__save,
  .gsd-cc-modal__accept-all,
  .gsd-cc-modal__close {
    transition-duration: 0.01ms;
  }
}
