/* App cookie settings modal — settings-only, no GA, no auto banner. */

.ly-consent-modal-open {
  overflow: hidden;
}

[data-lyruma-app-cookie-root] {
  position: relative;
  z-index: 10000;
  color: #20242a;
  font: inherit;
}

.ly-app-cookie-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: block;
  padding: 0;
  background: rgba(18, 23, 31, 0.55);
}

.ly-app-cookie-backdrop[hidden] {
  display: none !important;
}

.ly-app-cookie-dialog {
  /* Clearance above .ly-app-footer so brand + legal links stay readable. */
  --ly-app-cookie-footer-clearance: 64px;
  position: fixed;
  left: 8px;
  bottom: calc(var(--ly-app-cookie-footer-clearance) + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 16px));
  max-height: min(
    720px,
    calc(100vh - var(--ly-app-cookie-footer-clearance) - 24px - env(safe-area-inset-bottom, 0px))
  );
  overflow: auto;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.ly-app-cookie-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e6e9ef;
}

.ly-app-cookie-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: #20242a;
}

.ly-app-cookie-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #505967;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ly-app-cookie-close:hover,
.ly-app-cookie-close:focus-visible {
  background: #f3f4f6;
  outline: 2px solid #20242a;
  outline-offset: 1px;
}

.ly-app-cookie-body {
  padding: 18px 20px 8px;
}

.ly-app-cookie-body h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: #20242a;
}

.ly-app-cookie-body > p {
  margin: 0 0 14px;
  color: #505967;
  font-size: 14px;
  line-height: 1.5;
}

.ly-app-cookie-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ly-app-cookie-status-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #20242a;
  font-size: 14px;
  font-weight: 700;
}

.ly-app-cookie-status-list li.is-off {
  color: #697382;
}

.ly-app-cookie-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 12px;
}

.ly-app-cookie-details-toggle {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ly-app-cookie-details {
  margin-top: 12px;
  padding: 12px 0 4px;
  border-top: 1px solid #e6e9ef;
}

.ly-app-cookie-details[hidden] {
  display: none !important;
}

.ly-app-cookie-details p {
  margin: 0 0 10px;
  color: #505967;
  font-size: 13px;
  line-height: 1.5;
}

.ly-app-cookie-details a {
  color: #2563eb;
  font-weight: 700;
}

.ly-app-cookie-category {
  margin-top: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #d9dde4;
  border-radius: 8px;
  background: #f7f8fa;
}

.ly-app-cookie-category strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.ly-app-cookie-category p {
  margin: 0;
  color: #505967;
  font-size: 13px;
  line-height: 1.45;
}

.ly-app-cookie-pill {
  color: #505967;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.ly-app-cookie-switch input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #2563eb;
}

.ly-app-cookie-foot,
.ly-app-cookie-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid #e6e9ef;
}

.ly-app-cookie-foot[hidden] {
  display: none !important;
}

.ly-app-cookie-dialog-actions-change {
  padding-left: 0;
  padding-right: 0;
  border-top: 0;
}

.ly-app-cookie-btn {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #1e3a5f;
  border-radius: 8px;
  background: #ffffff;
  color: #1e3a5f;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.ly-app-cookie-btn-primary {
  background: #1e3a5f;
  color: #ffffff;
}

.ly-app-cookie-btn:hover,
.ly-app-cookie-btn:focus-visible {
  outline: 2px solid #20242a;
  outline-offset: 2px;
}

.ly-app-cookie-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Stacked footer (tablet/phone) needs more vertical clearance. */
@media (max-width: 1024px) {
  .ly-app-cookie-dialog {
    --ly-app-cookie-footer-clearance: 132px;
  }
}

@media (max-width: 480px) {
  .ly-app-cookie-dialog {
    --ly-app-cookie-footer-clearance: 148px;
  }

  .ly-app-cookie-foot,
  .ly-app-cookie-dialog-actions {
    grid-template-columns: 1fr;
  }
}
