/* Laumetris – slapukų sutikimo langas (v1.0, 2026-11). Visos klasės su "lmc-" priešdėliu, kad nesikirstų su svetainės stiliais. */

#lmc-root, #lmc-root * {
  box-sizing: border-box;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
}
#lmc-root [hidden] { display: none !important; }

/* ---------- Juosta ---------- */
#lmc-root .lmc-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 2147483000;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: #ffffff;
  color: #2b302a;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(20, 30, 15, .18), 0 2px 6px rgba(20, 30, 15, .06);
  animation: lmc-up .28s ease-out;
}
#lmc-root .lmc-banner-text { flex: 1 1 auto; min-width: 0; }

#lmc-root .lmc-h {
  margin: 0 0 6px; padding: 0;
  font-size: 17px; line-height: 1.3; font-weight: 600;
  color: #1d2419; text-align: left; border: 0; background: none;
}
#lmc-root .lmc-p {
  margin: 0; padding: 0;
  font-size: 14px; line-height: 1.55; font-weight: 400;
  color: #4a5047; text-align: left;
}
#lmc-root .lmc-link {
  color: #3a6f1f; text-decoration: underline; text-underline-offset: 2px; font-weight: 500;
}
#lmc-root .lmc-link:hover { color: #2a5214; }

#lmc-root .lmc-actions { display: flex; gap: 10px; flex: 0 0 auto; }

/* ---------- Mygtukai ---------- */
#lmc-root .lmc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; margin: 0; padding: 0 20px;
  font-size: 14px; line-height: 1.2; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  border-radius: 10px; border: 1px solid transparent;
  box-shadow: none; width: auto; height: auto; float: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
#lmc-root .lmc-btn:focus-visible,
#lmc-root .lmc-x:focus-visible,
#lmc-root .lmc-link:focus-visible,
#lmc-root .lmc-switch:focus-visible {
  outline: 3px solid #8ec760; outline-offset: 2px;
}
#lmc-root .lmc-btn-green { background: #3f7a22; color: #fff; }
#lmc-root .lmc-btn-green:hover { background: #33661b; }
#lmc-root .lmc-btn-dark  { background: #2f3530; color: #fff; }
#lmc-root .lmc-btn-dark:hover  { background: #1f2420; }
#lmc-root .lmc-btn-ghost { background: transparent; color: #2f3530; border-color: #cfd6ca; }
#lmc-root .lmc-btn-ghost:hover { background: #f2f5ef; border-color: #b7c1b0; }

/* ---------- Nustatymų langas ---------- */
#lmc-root .lmc-overlay {
  position: fixed; inset: 0;
  z-index: 2147483001;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(18, 24, 15, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: lmc-fade .2s ease-out;
}
#lmc-root .lmc-modal {
  width: 100%; max-width: 560px; max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  background: #fff; color: #2b302a;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
  overflow: hidden;
  animation: lmc-pop .22s ease-out;
}
#lmc-root .lmc-mhead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 24px 12px;
}
#lmc-root .lmc-mhead .lmc-h { margin: 0; font-size: 19px; }
#lmc-root .lmc-x {
  width: 36px; height: 36px; margin: 0; padding: 0;
  font-size: 24px; line-height: 1; color: #4a5047;
  background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
#lmc-root .lmc-x:hover { background: #f0f2ee; }
#lmc-root .lmc-mbody { padding: 0 24px 8px; overflow-y: auto; }
#lmc-root .lmc-mbody > .lmc-p { margin-bottom: 16px; }

#lmc-root .lmc-cat {
  padding: 14px 16px; margin: 0 0 10px;
  background: #f6f8f4; border: 1px solid #e6ebe2; border-radius: 12px;
}
#lmc-root .lmc-cat-head { display: flex; align-items: center; gap: 10px; }
#lmc-root .lmc-cat-title {
  flex: 1 1 auto; margin: 0; padding: 0;
  font-size: 15px; font-weight: 600; color: #1d2419; cursor: pointer; text-align: left;
}
#lmc-root .lmc-badge {
  font-size: 12px; font-weight: 500; color: #3a6f1f;
  background: #e3efd9; padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
#lmc-root .lmc-cat-desc {
  margin: 6px 0 0; padding: 0;
  font-size: 13px; line-height: 1.5; color: #5a6157; text-align: left;
}

/* Jungiklis */
#lmc-root .lmc-switch {
  -webkit-appearance: none; appearance: none;
  position: relative; flex: 0 0 auto;
  width: 44px; height: 24px; margin: 0; padding: 0;
  background: #c3cabe; border: 0; border-radius: 999px;
  cursor: pointer; transition: background-color .18s;
  display: inline-block; opacity: 1; visibility: visible;
}
#lmc-root .lmc-switch::before {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .18s;
}
#lmc-root .lmc-switch:checked { background: #3f7a22; }
#lmc-root .lmc-switch:checked::before { transform: translateX(20px); }
#lmc-root .lmc-switch:disabled { cursor: not-allowed; opacity: .55; }

#lmc-root .lmc-mfoot {
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
  padding: 16px 24px 20px; border-top: 1px solid #eceee9;
}

html.lmc-lock, html.lmc-lock body { overflow: hidden; }

/* ---------- Telefonai ---------- */
@media (max-width: 760px) {
  #lmc-root .lmc-banner {
    left: 8px; right: 8px; bottom: 8px;
    flex-direction: column; align-items: stretch; gap: 14px;
    padding: 18px;
  }
  #lmc-root .lmc-actions { flex-direction: column-reverse; }
  #lmc-root .lmc-actions .lmc-btn, #lmc-root .lmc-mfoot .lmc-btn { width: 100%; }
  #lmc-root .lmc-mfoot { flex-direction: column-reverse; }
  #lmc-root .lmc-overlay { align-items: flex-end; padding: 0; }
  #lmc-root .lmc-modal { max-width: none; max-height: 92vh; border-radius: 16px 16px 0 0; }
}

@keyframes lmc-up   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lmc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lmc-pop  { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #lmc-root .lmc-banner, #lmc-root .lmc-overlay, #lmc-root .lmc-modal { animation: none; }
  #lmc-root .lmc-switch, #lmc-root .lmc-switch::before, #lmc-root .lmc-btn { transition: none; }
}
@media print { #lmc-root { display: none !important; } }
