.gcm-banner,
.gcm-modal__panel {
  box-sizing: border-box;
  color: #111827;
  background: #ffffff;
  border: 1px solid #d1d5db;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.18);
  font-size: 16px;
}

.gcm-banner[hidden],
.gcm-modal[hidden] {
  display: none !important;
}

.gcm-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 999998;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 8px;
}

.gcm-banner h2,
.gcm-modal h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.gcm-banner__text p {
  margin: 0 0 8px;
}

.gcm-banner__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gcm-banner__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.gcm-button,
.gcm-floating {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #374151;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  font: inherit;
}

.gcm-button--primary {
  background: #111827;
  color: #ffffff;
}

.gcm-button:focus,
.gcm-floating:focus,
.gcm-category input:focus {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.gcm-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(17, 24, 39, 0.5);
}

.gcm-modal__panel {
  width: min(680px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
  border-radius: 8px;
}

.gcm-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #e5e7eb;
}

.gcm-category span span {
  display: block;
  margin-top: 4px;
  color: #4b5563;
}

.gcm-floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999997;
}

.gcm-embed-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
}

.gcm-cookie-declaration {
  width: 100%;
  border-collapse: collapse;
}

.gcm-cookie-declaration th,
.gcm-cookie-declaration td {
  padding: 8px;
  border: 1px solid #d1d5db;
  text-align: left;
  vertical-align: top;
}

@media (max-width: 720px) {
  .gcm-banner {
    grid-template-columns: 1fr;
  }

  .gcm-banner__actions {
    justify-content: stretch;
  }

  .gcm-button {
    flex: 1 1 auto;
  }
}
