/* Smailer slapukų sutikimas – CookieYes tipo išdėstymas, temos spalvos (Open Sans, #232323, akcentas #24c58a) */

.sc-root {
  --sc-text: #232323;
  --sc-muted: #5f5f5f;
  --sc-border: #e8e8e8;
  --sc-surface: #ffffff;
  --sc-soft: #f6f6f6;
  --sc-primary: #232323;
  --sc-primary-hover: #000000;
  --sc-accent: #24c58a;
  --sc-radius: 5px;
  --sc-shadow: 0 6px 32px rgba(0, 0, 0, .18);

  box-sizing: border-box;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sc-text);
  z-index: 2147483000;
}

.sc-root *,
.sc-root *::before,
.sc-root *::after {
  box-sizing: inherit;
}

html.sc-locked,
html.sc-locked body {
  overflow: hidden;
}

/* ---------- Mygtukai ---------- */

.sc-root .sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid var(--sc-primary);
  border-radius: var(--sc-radius);
  background: var(--sc-primary);
  color: #ffffff;
  font: 600 14px/1.2 "Open Sans", Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

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

.sc-root .sc-btn--outline {
  background: var(--sc-surface);
  color: var(--sc-primary);
}

.sc-root .sc-btn--outline:hover {
  background: var(--sc-soft);
  color: var(--sc-primary-hover);
}

.sc-root .sc-btn:focus-visible,
.sc-root .sc-cat__toggle:focus-visible,
.sc-root .sc-panel__close:focus-visible,
.sc-revisit:focus-visible,
.sc-root .sc-switch input:focus-visible + .sc-switch__track {
  outline: 2px solid var(--sc-accent);
  outline-offset: 2px;
}

.sc-root .sc-link {
  color: var(--sc-text);
  text-decoration: underline;
}

.sc-root .sc-link:hover {
  color: #000000;
}

/* ---------- Baneris (kortelė apačioje kairėje) ---------- */

.sc-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 440px;
  max-width: calc(100vw - 32px);
  padding: 22px 24px 24px;
  border-radius: 8px;
  background: var(--sc-surface);
  box-shadow: var(--sc-shadow);
}

.sc-banner__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.sc-banner__text {
  margin: 0 0 18px;
  color: var(--sc-muted);
}

.sc-banner__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* ---------- Nustatymų skydelis (kairėje, per visą aukštį) ---------- */

.sc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.sc-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 480px;
  max-width: 100%;
  background: var(--sc-surface);
  box-shadow: var(--sc-shadow);
}

.sc-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--sc-border);
}

.sc-panel__title {
  font-size: 17px;
  font-weight: 700;
}

.sc-root .sc-panel__close {
  width: 32px;
  height: 32px;
  margin: 0 -6px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sc-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.sc-root .sc-panel__close:hover {
  color: var(--sc-text);
}

.sc-panel__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 24px;
  -webkit-overflow-scrolling: touch;
}

.sc-panel__intro {
  margin: 0 0 8px;
  color: var(--sc-muted);
}

.sc-panel__actions {
  display: grid;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--sc-border);
  background: var(--sc-surface);
}

/* ---------- Kategorijos ---------- */

.sc-cat {
  padding: 14px 0;
  border-bottom: 1px solid var(--sc-border);
}

.sc-cat:last-child {
  border-bottom: 0;
}

.sc-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sc-root .sc-cat__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--sc-text);
  font: 700 15px/1.3 "Open Sans", Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}

.sc-cat__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s ease;
}

.sc-cat__toggle[aria-expanded="true"] .sc-cat__chevron {
  transform: rotate(45deg);
}

.sc-cat__always {
  color: var(--sc-accent);
  font-weight: 600;
  white-space: nowrap;
}

.sc-cat__desc {
  margin: 6px 0 0 18px;
  color: var(--sc-muted);
}

.sc-cat__body {
  margin: 10px 0 0 18px;
}

.sc-cat__empty {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--sc-radius);
  background: var(--sc-soft);
  color: var(--sc-muted);
  font-size: 13px;
}

.sc-root .sc-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 12.5px;
}

.sc-root .sc-table th,
.sc-root .sc-table td {
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px solid var(--sc-border);
  color: var(--sc-text);
  text-align: left;
  vertical-align: top;
}

.sc-root .sc-table th {
  background: var(--sc-soft);
  font-weight: 600;
}

.sc-root .sc-table code {
  padding: 0;
  background: none;
  color: var(--sc-text);
  font-size: 12px;
  word-break: break-all;
}

/* ---------- Perjungiklis ---------- */

.sc-root .sc-switch {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  margin: 0;
  cursor: pointer;
}

.sc-root .sc-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.sc-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: #c9c9c9;
  transition: background-color .15s ease;
}

.sc-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}

.sc-switch input:checked + .sc-switch__track {
  background: var(--sc-accent);
}

.sc-switch input:checked + .sc-switch__track::after {
  transform: translateX(18px);
}

/* ---------- Nustatymų mygtukas (po sutikimo) ---------- */

.sc-revisit {
  position: fixed;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #232323;
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
  cursor: pointer;
}

/* ---------- Mobilus ---------- */

@media (max-width: 575px) {
  .sc-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 12px 12px 0 0;
  }

  .sc-banner__actions {
    grid-template-columns: 1fr 1fr;
  }

  .sc-banner__actions [data-sc="customize"] {
    grid-column: 1 / -1;
    order: 3;
  }

  .sc-panel {
    width: 100%;
  }

  .sc-panel__head,
  .sc-panel__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sc-panel__actions {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .sc-root .sc-table thead {
    display: none;
  }

  .sc-root .sc-table,
  .sc-root .sc-table tbody,
  .sc-root .sc-table tr,
  .sc-root .sc-table td {
    display: block;
    width: 100%;
  }

  .sc-root .sc-table tr {
    padding: 6px 0;
    border-bottom: 1px solid var(--sc-border);
  }

  .sc-root .sc-table td {
    padding: 2px 0;
    border: 0;
  }

  .sc-root .sc-table td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
  }
}

/* ---------- Animacijos (JS prideda / nuima `is-open`) ---------- */

.sc-banner {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .3s ease, transform .4s cubic-bezier(.22, .61, .36, 1);
}

.sc-banner.is-open {
  opacity: 1;
  transform: none;
}

.sc-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.sc-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sc-panel {
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}

.sc-overlay.is-open .sc-panel {
  transform: none;
}

.sc-revisit {
  opacity: 0;
  transform: scale(.6);
  transition: opacity .25s ease, transform .25s cubic-bezier(.22, .61, .36, 1);
}

.sc-revisit.is-open {
  opacity: .85;
  transform: none;
}

.sc-revisit.is-open:hover {
  opacity: 1;
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .sc-banner,
  .sc-overlay,
  .sc-panel,
  .sc-revisit {
    transition: none;
  }
}
