/*!
 * Elinom cookie consent dialog — unique filename (nginx caches /css/ immutable).
 * Same layout on desktop and phone: centred white card, stacked Consent / Manage.
 */

.elinom-cc {
  position: static;
}

.elinom-cc.is-open {
  position: fixed;
  inset: 0;
  z-index: 100200;
}

html[data-erp-auth="1"] .elinom-cc,
html[data-active-shell-mode="app"] .elinom-cc,
html[data-active-module]:not([data-active-module="landing"]) .elinom-cc {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Public Zuto storefronts still need the consent card, including when the
   visitor already has an ERP session cookie (common on Android Chrome). */
html[data-zuto-vertical] .elinom-cc,
html[data-elinom-skip-shared-chrome="1"] .elinom-cc,
html body[data-zuto-vertical] .elinom-cc,
html body[data-zuto-vertical] .elinom-cc.is-open,
html[data-elinom-skip-shared-chrome="1"] body .elinom-cc.is-open {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.elinom-cc-backdrop {
  display: none;
}

.elinom-cc.is-open .elinom-cc-backdrop {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100200;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgb(15 23 42 / 55%);
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

.elinom-cc-dialog {
  width: min(420px, 100%);
  margin: auto;
  padding: 28px 22px 22px;
  border-radius: 20px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 24px 64px rgb(15 23 42 / 28%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.elinom-cc-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.elinom-cc-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 48%, #f472b6 100%);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.elinom-cc-wordmark {
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #38bdf8 0%, #6366f1 42%, #f472b6 72%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #38bdf8;
}

.elinom-cc-title {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.elinom-cc-purpose {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  text-align: start;
}

.elinom-cc-purpose-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.elinom-cc-icon-ads {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21a8 8 0 0 0-16 0'/><circle cx='12' cy='8' r='4'/></svg>");
}

.elinom-cc-icon-store {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='7' y='3' width='10' height='18' rx='2'/><path d='M11 7h2M11 11h2'/></svg>");
}

.elinom-cc-purpose-copy {
  margin: 0;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.45;
}

.elinom-cc-learn {
  margin: 8px 0 18px;
  text-align: start;
}

.elinom-cc-learn-summary {
  cursor: pointer;
  list-style: none;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 600;
}

.elinom-cc-learn-summary::-webkit-details-marker {
  display: none;
}

.elinom-cc-learn-summary::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-inline-end: 8px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(-45deg);
  translate: 0 -1px;
}

.elinom-cc-learn[open] .elinom-cc-learn-summary::before {
  transform: rotate(45deg);
}

.elinom-cc-learn-body,
.elinom-cc-links {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.55;
}

.elinom-cc-links a {
  color: #2563eb;
  text-decoration: underline;
}

.elinom-cc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.elinom-cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.elinom-cc-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #fff;
}

.elinom-cc-btn-secondary {
  background: #2563eb;
  color: #fff;
}

.elinom-cc-btn-ghost {
  background: #f1f5f9;
  color: #0f172a;
}

.elinom-cc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  text-align: start;
  cursor: pointer;
}

.elinom-cc-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.elinom-cc-toggle-copy strong {
  font-size: 0.95rem;
}

.elinom-cc-toggle-copy span {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.4;
}

.elinom-cc-toggle input {
  width: 42px;
  height: 24px;
  accent-color: #2563eb;
}

.elinom-cc-reopen {
  display: none !important;
  position: fixed;
  right: 104px;
  bottom: 32px;
  z-index: 100180;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgb(37 99 235 / 28%);
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgb(15 23 42 / 16%);
  cursor: pointer;
}

.elinom-cc-reopen.is-hidden,
.elinom-cc-reopen[hidden] {
  display: none !important;
}

html[dir="rtl"] .elinom-cc-reopen {
  right: auto;
  left: 104px;
}

@media (width <= 900px) {
  .elinom-cc-reopen {
    right: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  html[dir="rtl"] .elinom-cc-reopen {
    left: 16px;
  }
}
