.nebext-cookies[hidden],
.nebext-cookies-consented .nebext-cookies,
.nebext-cookies__preferences[hidden],
.nebext-cookies__button[hidden] {
  display: none !important;
}

.nebext-cookies {
  position: fixed;
  inset: auto 0 0;
  z-index: 999999;
  padding: 16px;
  font-family: inherit;
}

.nebext-cookies__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 18px;
  color: #1f1f1f;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.nebext-cookies__title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.nebext-cookies__message {
  margin: 0;
  max-width: 820px;
  font-size: 14px;
  line-height: 1.45;
}

.nebext-cookies__preferences {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.nebext-cookies__option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 6px;
  background: #fff;
}

.nebext-cookies__option input {
  width: 16px;
  height: 16px;
  accent-color: var(--nebext-cookie-primary, #111);
}

.nebext-cookies__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nebext-cookies__button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 124px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid var(--nebext-cookie-primary, #111);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nebext-cookies__button--choice,
.nebext-cookies__button[data-nebext-cookies-accept],
.nebext-cookies__button[data-nebext-cookies-reject] {
  width: 158px;
  color: #fff;
  background: var(--nebext-cookie-primary, #111);
}

.nebext-cookies__button--choice:hover,
.nebext-cookies__button--choice:focus-visible,
.nebext-cookies__button[data-nebext-cookies-accept]:hover,
.nebext-cookies__button[data-nebext-cookies-accept]:focus-visible,
.nebext-cookies__button[data-nebext-cookies-reject]:hover,
.nebext-cookies__button[data-nebext-cookies-reject]:focus-visible {
  background: #000;
  border-color: #000;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.nebext-cookies__button--save,
.nebext-cookies__button[data-nebext-cookies-save] {
  color: var(--nebext-cookie-primary, #111);
  background: var(--nebext-cookie-secondary, #f5f5f5);
}

.nebext-cookies__button--save:hover,
.nebext-cookies__button--save:focus-visible,
.nebext-cookies__button[data-nebext-cookies-save]:hover,
.nebext-cookies__button[data-nebext-cookies-save]:focus-visible {
  background: var(--nebext-cookie-tertiary, #e8e8e8);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.nebext-cookies__button--settings,
.nebext-cookies__button[data-nebext-cookies-toggle] {
  color: var(--nebext-cookie-primary, #111);
  background: #fff;
}

.nebext-cookies__button--settings:hover,
.nebext-cookies__button--settings:focus-visible,
.nebext-cookies__button[data-nebext-cookies-toggle]:hover,
.nebext-cookies__button[data-nebext-cookies-toggle]:focus-visible {
  background: rgba(0, 0, 0, 0.045);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.nebext-cookie-policy {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  color: inherit;
}

.nebext-cookie-policy__service {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.nebext-cookie-policy__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  color: #1f1f1f;
  background: rgba(0, 0, 0, 0.035);
}

.nebext-cookie-policy__service-name {
  font-weight: 700;
}

.nebext-cookie-policy__service-meta {
  font-size: 13px;
  text-align: right;
  color: rgba(0, 0, 0, 0.64);
}

.nebext-cookie-policy__service-copy {
  padding: 14px 16px 0;
  font-size: 14px;
  line-height: 1.45;
}

.nebext-cookie-policy__service-copy p {
  margin: 0 0 10px;
}

.nebext-cookie-policy__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.nebext-cookie-policy__table th,
.nebext-cookie-policy__table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.nebext-cookie-policy__table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: rgba(0, 0, 0, 0.62);
  background: rgba(0, 0, 0, 0.02);
}

.nebext-cookie-policy__table code {
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 13px;
}

.nebext-cookie-policy-empty {
  margin: 24px 0;
}

.nebext-cookie-placeholder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 180px;
  padding: 18px;
  color: #1f1f1f;
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
}

.nebext-cookie-placeholder__copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.25;
}

.nebext-cookie-placeholder__copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.nebext-cookie-placeholder__button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  background: var(--nebext-cookie-primary, #111);
  border: 1px solid var(--nebext-cookie-primary, #111);
  border-radius: 6px;
}

.nebext-cookie-placeholder__button:hover,
.nebext-cookie-placeholder__button:focus-visible {
  background: #000;
  border-color: #000;
}

.nebext-cookies-footer-link {
  display: inline-block;
}

.nebext-cookies-footer-link a {
  color: inherit;
  text-decoration: none;
}

.nebext-cookies-footer-link a:hover,
.nebext-cookies-footer-link a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .nebext-cookies {
    padding: 10px;
  }

  .nebext-cookies__panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .nebext-cookies__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .nebext-cookies__button {
    width: 100%;
  }

  .nebext-cookie-policy__summary {
    grid-template-columns: 1fr;
  }

  .nebext-cookie-policy__service-meta {
    text-align: left;
  }

  .nebext-cookie-policy__table {
    display: block;
    overflow-x: auto;
    table-layout: auto;
  }

  .nebext-cookie-placeholder {
    grid-template-columns: 1fr;
  }

  .nebext-cookie-placeholder__button {
    width: 100%;
  }
}
