/* Avertissement logos tiers — GCE / PDE (thème sombre pétrole + violet) */
.gxs-eld {
  --gxs-eld-petrol: var(--petronas, #00b8a8);
  --gxs-eld-petrol-glow: var(--petronas-glow, rgba(0, 184, 168, 0.35));
  --gxs-eld-violet: var(--violet, #7c3aed);
  --gxs-eld-violet-bright: var(--violet-bright, #8b5cf6);
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.gxs-eld[hidden] {
  display: none !important;
}

html.gxs-eld-open,
html.gxs-eld-open body {
  overflow: hidden;
}

.gxs-eld-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 10, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gxs-eld-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(92dvh, 720px);
  overflow: auto;
  padding: 1.35rem 1.4rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(165deg, rgba(0, 184, 168, 0.1) 0%, transparent 42%),
    linear-gradient(210deg, rgba(124, 58, 237, 0.12) 0%, transparent 48%),
    linear-gradient(180deg, #151a21 0%, #0e1217 100%);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 184, 168, 0.08) inset;
  color: #e8eaed;
}

.gxs-eld-kicker {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gxs-eld-petrol);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.gxs-eld-title {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: #fff;
}

.gxs-eld-body {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gxs-eld-sections {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gxs-eld-section {
  margin: 0;
  padding: 0;
}

.gxs-eld-section-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: #fff;
}

.gxs-eld-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.gxs-eld-list {
  margin: 0.45rem 0 0;
  padding: 0 0 0 1.15rem;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gxs-eld-list li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  padding-left: 0.15rem;
}

.gxs-eld-list li::marker {
  color: var(--gxs-eld-petrol);
}

.gxs-eld-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.gxs-eld-check:hover {
  border-color: rgba(0, 184, 168, 0.35);
}

.gxs-eld-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.gxs-eld-check-ui {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.12rem;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 0 var(--gxs-eld-petrol);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.gxs-eld-check input:focus-visible + .gxs-eld-check-ui {
  outline: 2px solid var(--gxs-eld-violet-bright);
  outline-offset: 2px;
}

.gxs-eld-check input:checked + .gxs-eld-check-ui {
  border-color: var(--gxs-eld-petrol);
  background: var(--gxs-eld-petrol);
  box-shadow: 0 0 12px var(--gxs-eld-petrol-glow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230a0e12' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l3 3.1 6-6.4'/%3E%3C/svg%3E");
  background-size: 0.85rem 0.85rem;
  background-repeat: no-repeat;
  background-position: center;
}

.gxs-eld-check-label {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.gxs-eld-cgv-link {
  color: var(--gxs-eld-petrol);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.gxs-eld-cgv-link:hover {
  color: var(--gxs-eld-violet-bright);
}

.gxs-eld-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gxs-eld-actions .btn {
  min-height: 2.5rem;
}

.gxs-eld-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* GCE full-page (z-index au-dessus orientation / startup) */
body.gce-ir-clone .gxs-eld,
body.ir-editor-page .gxs-eld {
  z-index: 1001000;
}

@media (max-width: 560px) {
  .gxs-eld {
    padding: 0;
    align-items: stretch;
  }

  .gxs-eld-panel {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 1.1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .gxs-eld-actions {
    flex-direction: column-reverse;
  }

  .gxs-eld-actions .btn {
    width: 100%;
  }
}
