.gyab-consent {
  position: fixed;
  z-index: 999999;
  right: 16px;
  bottom: 16px;
  left: 16px;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px;
  border: 1px solid #d8ddd9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(21, 35, 27, 0.2);
  color: #18221c;
  font-family: Arial, sans-serif;
  text-align: left;
}

.gyab-consent-decided .gyab-consent--early {
  display: none;
}

.gyab-consent,
.gyab-consent *,
.gyab-settings {
  box-sizing: border-box;
}

.gyab-consent-header strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  line-height: 1.3;
}

.gyab-consent-header p {
  margin: 0;
  color: #59645c;
  font-size: 14px;
  line-height: 1.5;
}

.gyab-consent a {
  color: inherit;
  font-weight: 700;
}

.gyab-consent-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  border: 1px solid #dfe4e0;
  border-radius: 6px;
  overflow: hidden;
}

.gyab-consent-details[hidden],
.gyab-consent button[hidden] {
  display: none;
}

.gyab-consent-category {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  cursor: pointer;
}

.gyab-consent-category + .gyab-consent-category {
  border-left: 1px solid #dfe4e0;
}

.gyab-consent-category strong,
.gyab-consent-category small {
  display: block;
}

.gyab-consent-category strong {
  margin-bottom: 3px;
  font-size: 13px;
  line-height: 1.3;
}

.gyab-consent-category small {
  color: #69736c;
  font-size: 12px;
  line-height: 1.4;
}

.gyab-consent-category input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.gyab-consent-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: #aeb7b0;
  transition: background 160ms ease;
}

.gyab-consent-toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  content: '';
  transition: transform 160ms ease;
}

.gyab-consent-category input:checked + .gyab-consent-toggle {
  background: #174b31;
}

.gyab-consent-category input:checked + .gyab-consent-toggle::after {
  transform: translateX(16px);
}

.gyab-consent-category input:focus-visible + .gyab-consent-toggle {
  outline: 3px solid rgba(23, 75, 49, 0.24);
  outline-offset: 2px;
}

.gyab-consent-category input:disabled + .gyab-consent-toggle {
  background: #607166;
  opacity: 0.72;
}

.gyab-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.gyab-consent button,
.gyab-settings {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid #b8c1ba;
  border-radius: 6px;
  background: #fff;
  color: #1d2821;
  font: 700 13px/1.2 Arial, sans-serif;
  cursor: pointer;
}

.gyab-consent .gyab-consent-accept,
.gyab-consent .gyab-consent-save {
  border-color: #174b31;
  background: #174b31;
  color: #fff;
}

.gyab-consent button:hover,
.gyab-settings:hover {
  border-color: #174b31;
}

.gyab-settings {
  position: fixed;
  z-index: 999998;
  right: 12px;
  bottom: 12px;
  min-height: 34px;
  padding: 8px 10px;
  box-shadow: 0 8px 24px rgba(21, 35, 27, 0.14);
  font-size: 11px;
}

.gyab-settings[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .gyab-consent {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    padding: 15px;
    overflow-y: auto;
  }

  .gyab-consent-details {
    grid-template-columns: 1fr;
  }

  .gyab-consent-category + .gyab-consent-category {
    border-top: 1px solid #dfe4e0;
    border-left: 0;
  }

  .gyab-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .gyab-consent-actions button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .gyab-consent-actions {
    grid-template-columns: 1fr;
  }
}
