/* ===============================
   Gurskio Slapukų Sutikimas Pro – PCK (šviesus, Poppins)
   Pilnas CSS failas (2025-11-11) v3.1.1
   =============================== */

:root {
  --gsp-accent: #8300e9;
  --gsp-text: #222;          /* pagrindinis tekstas */
  --gsp-muted: #555;
  --gsp-bg: #ffffff;         /* banerio ir modal fono spalva */
  --gsp-border: #e6e6ea;     /* švelni rėmelių spalva */
  --gsp-hover-bg: rgba(131,0,233,0.08);
}

.gsp-hidden { display: none !important; }

/* --- Pagrindinis baneris --- */
.gsp-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: var(--gsp-bg);
  color: var(--gsp-text);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--gsp-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  padding-right: 48px; /* vieta X mygtukui */
}

.gsp-banner__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 70%;
}

.gsp-banner__text strong {
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--gsp-text);
}

.gsp-banner__text span {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 12.5px;
  color: var(--gsp-muted);
}

.gsp-link {
  color: var(--gsp-accent);
  text-decoration: underline;
}

.gsp-link:hover {
  text-decoration: none;
}

/* --- Mygtukai --- */
.gsp-banner__actions {
  display: flex;
  gap: 8px;
}

.gsp-btn {
  border: 1px solid var(--gsp-accent) !important;
  border-radius: 5px !important;
  padding: 10px 18px !important;
  font-size: 12px !important;
  text-transform: none;
  font-family: "Poppins", Arial, sans-serif !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, opacity .15s ease, transform .08s ease;
}

.gsp-btn:active {
  transform: scale(0.98);
}

.gsp-btn--primary {
  background: var(--gsp-accent) !important;
  color: #fff !important;
}

.gsp-btn--primary:hover {
  opacity: 0.92;
}

.gsp-btn--secondary {
  background: transparent !important;
  color: var(--gsp-accent) !important;
}

.gsp-btn--secondary:hover {
  background: var(--gsp-hover-bg) !important;
}

.gsp-btn--ghost {
  background: transparent !important;
  color: var(--gsp-accent) !important;
}

.gsp-btn--ghost:hover {
  background: var(--gsp-hover-bg) !important;
}

/* --- Minimalistinis X mygtukas --- */
.gsp-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.gsp-close::before {
  content: "✕";
  font-size: 18px;
  color: #666;
  line-height: 1;
  font-weight: 400;
}

.gsp-close:hover {
  opacity: 0.7;
  background: none !important;
}

/* --- Modal + overlay --- */
.gsp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.40);
  z-index: 999998;
}

.gsp-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999999;
  width: min(720px, 92vw);
  background: var(--gsp-bg);
  color: var(--gsp-text);
  border-radius: 12px;
  border: 1px solid var(--gsp-border);
  box-shadow: 0 30px 80px rgba(0,0,0,0.20);
  overflow: hidden;
}

.gsp-modal__header,
.gsp-modal__footer {
  padding: 14px 18px;
  background: #fafafa;
  border-top: 1px solid var(--gsp-border);
  border-bottom: 1px solid var(--gsp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gsp-modal__header {
  border-top: none;
}

.gsp-modal__footer {
  border-bottom: none;
}

.gsp-modal__header h3 {
  margin: 0;
  font: 600 18px/1 "Poppins", Arial, sans-serif;
  color: var(--gsp-text);
}

.gsp-modal__body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow: auto;
}

/* --- Kategorijos blokai --- */
.gsp-cat {
  background: #fff;
  border: 1px solid var(--gsp-border);
  border-radius: 10px;
  padding: 12px 14px;
}

.gsp-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gsp-cat__head strong {
  font: 600 15px/1 "Poppins", Arial, sans-serif;
  color: var(--gsp-text);
}

.gsp-cat p {
  margin: 8px 0 0 0;
  font: 13px/1.5 "Poppins", Arial, sans-serif;
  color: var(--gsp-muted);
}

/* --- Slankiklis (switch) --- */
.gsp-switch {
  position: relative;
  width: 46px;
  height: 26px;
}

.gsp-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.gsp-slider {
  position: absolute;
  inset: 0;
  background: #cfcfd6;
  border-radius: 20px;
  cursor: pointer;
  transition: .2s;
}

.gsp-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.gsp-switch input:checked + .gsp-slider {
  background: var(--gsp-accent);
}

.gsp-switch input:checked + .gsp-slider::before {
  transform: translateX(20px);
}

/* --- Responsive dizainas --- */
@media (max-width: 900px) {
  .gsp-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .gsp-banner__text {
    max-width: 100%;
  }
  .gsp-banner__actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    /* Stack buttons vertically on small screens and control visual order via `order` to avoid DOM changes */
    display: flex;
    flex-direction: column;
  }
  .gsp-btn {
    flex: 1;
    text-align: center;
  }

  .gsp-modal__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .gsp-modal__footer .gsp-btn {
    width: 100%;
  }

  .gsp-modal__btns {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .gsp-modal__btns .gsp-btn:first-child {
    margin-bottom: 12px !important;
  }

  /* Mobile button order: Sutinku (accept) should be first, then Atmesti (reject), then Slapukų nustatymai */
  #gsp-accept-all { order: 1; }
  #gsp-reject-all { order: 2; }
  #gsp-open-settings { order: 3; }
}

/* --- Accessibility --- */
.gsp-banner:focus,
.gsp-modal:focus {
  outline: 2px solid var(--gsp-accent);
  outline-offset: 2px;
}

/* --- "Slapukų nustatymai" shortcode (footer) --- */
.gsp-cookie-settings,
.gsp-shortcode-btn {
  all: unset;
  color: var(--gsp-accent);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color .15s ease, background .15s ease, opacity .15s ease;
  line-height: 1.4;
}

.gsp-cookie-settings:hover,
.gsp-shortcode-btn:hover {
  text-decoration: none;
  background: var(--gsp-hover-bg);
}
