/**
 * Modale d’avertissement (sélection variation / obligatoire configurateur) — thème Woodmart / mydoorling
 */
.pc-vmo-hidden {
  display: none !important;
}

.pc-vmo-overlay {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.45);
  box-sizing: border-box;
  --pc-vmo-accent: var(--wd-primary-color, var(--e-global-color-primary, #1e3a5f));
  --pc-vmo-surface: #fff;
  --pc-vmo-text: #0f172a;
  --pc-vmo-muted: #64748b;
  --pc-vmo-radius: 0.5rem;
  --pc-vmo-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
}

.pc-vmo-dialog {
  width: 100%;
  max-width: 28rem;
  background: var(--pc-vmo-surface);
  color: var(--pc-vmo-text);
  border-radius: var(--pc-vmo-radius);
  box-shadow: var(--pc-vmo-shadow);
  padding: 1.25rem 1.5rem 1.15rem;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5;
  outline: none;
}

.pc-vmo-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pc-vmo-text);
}

.pc-vmo-body {
  margin: 0 0 0.4rem;
  color: var(--pc-vmo-muted);
  font-size: 0.92rem;
}

.pc-vmo-list {
  margin: 0.4rem 0 0.75rem 1.1rem;
  padding: 0;
  color: var(--pc-vmo-text);
  font-size: 0.92rem;
}

.pc-vmo-list li {
  margin: 0.2rem 0;
}

/*
 * Important : ne pas utiliser la classe .md-sticky-confirm sur un conteneur interne :
 * le thème en définit une en full-screen avec opacity:0 / visibility:hidden sans .is-visible.
 * On garde uniquement les classes de bouton / actions (mêmes styles que sticky-title-price).
 */
.pc-vmo-overlay .pc-vmo-confirm-actions {
  margin-top: 0.35rem;
  background: transparent;
  box-shadow: none;
  position: static;
  inset: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pc-vmo-overlay .pc-vmo-confirm-actions .md-sticky-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pc-vmo-overlay .pc-vmo-confirm-actions .md-sticky-confirm__actions--pc-vmo-end {
  justify-content: flex-end;
}

.pc-vmo-overlay .pc-vmo-confirm-actions button.md-sticky-confirm__btn {
  --btn-brd-radius: 7px;
  min-width: 88px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 7px !important;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pc-vmo-overlay .pc-vmo-confirm-actions .md-sticky-confirm__btn--primary,
.pc-vmo-overlay .pc-vmo-confirm-actions button.md-sticky-confirm__btn--primary {
  --btn-brd-radius: 7px;
  color: #fff !important;
  background-color: var(--wd-primary-color, #c89b5f) !important;
  border: 1px solid transparent;
  border-radius: 7px !important;
  box-shadow: none;
}

.pc-vmo-overlay .pc-vmo-confirm-actions .md-sticky-confirm__btn--primary:hover,
.pc-vmo-overlay .pc-vmo-confirm-actions button.md-sticky-confirm__btn--primary:hover {
  color: #fff !important;
  background-color: color-mix(in srgb, var(--wd-primary-color, #c89b5f) 90%, #1a1208) !important;
  border-radius: 7px !important;
  box-shadow: 0 2px 10px rgba(200, 155, 95, 0.28) !important;
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .pc-vmo-overlay .pc-vmo-confirm-actions .md-sticky-confirm__btn--primary:hover,
  .pc-vmo-overlay .pc-vmo-confirm-actions button.md-sticky-confirm__btn--primary:hover {
    background-color: #b88a4f !important;
    filter: brightness(0.98);
  }
}

body.pc-vmo-open {
  overflow: hidden;
}
