/* À L’AUBE — Sidecart global
   Reprise volontaire du composant du configurateur VPS. */
#aube-global-sidecart-root {
  --aube-cream:#FCF7F3;
  --aube-brown:#493126;
  --aube-orange:#D45C2E;
  --aube-beige:#E8D8CC;
  --aube-muted:#88766C;
  --aube-dark:#222;
  --aube-green:#406A4C;
  --aube-red:#A14A43;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

#aube-global-sidecart-root *,
#aube-global-sidecart-root *::before,
#aube-global-sidecart-root *::after { box-sizing:border-box; }

#aube-global-sidecart-root button,
#aube-global-sidecart-root input { font:inherit; }

#aube-global-sidecart-root button { -webkit-tap-highlight-color:transparent; }

#aube-global-sidecart-root .aube-sidecart-overlay {
  position:fixed; inset:0; z-index:999990;
  background:rgba(20,14,11,.45);
  opacity:0; pointer-events:none;
  transition:opacity .2s ease;
}
#aube-global-sidecart-root .aube-sidecart-overlay.is-open { opacity:1; pointer-events:auto; }

#aube-global-sidecart-root .aube-sidecart {
  position:fixed; z-index:999991; top:0; right:0;
  width:min(390px,100%); height:100%;
  background:var(--aube-cream);
  border-left:1px solid var(--aube-beige);
  transform:translateX(102%);
  transition:transform .24s ease;
  display:flex; flex-direction:column;
  padding:14px;
  overflow-y:auto; overscroll-behavior:contain;
  box-shadow:-16px 0 38px rgba(32,22,18,.18);
  color:var(--aube-brown);
}
#aube-global-sidecart-root .aube-sidecart.is-open { transform:translateX(0); }

#aube-global-sidecart-root .aube-sidecart-head {
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:10px; margin-bottom:10px;
}
#aube-global-sidecart-root .aube-eyebrow {
  color:var(--aube-muted); text-transform:uppercase;
  letter-spacing:.1em; font-size:.64rem; font-weight:850;
}
#aube-global-sidecart-root .aube-sidecart-title {
  margin-top:3px; color:var(--aube-brown);
  font-family:Georgia,serif; font-size:1.5rem; font-weight:500;
}
#aube-global-sidecart-root .aube-sidecart-close {
  width:40px; height:40px; border:1px solid var(--aube-beige);
  background:#fff; color:var(--aube-brown); border-radius:50%;
  font-size:1.25rem; font-weight:900; cursor:pointer;
}

#aube-global-sidecart-root .aube-cart-items { display:grid; gap:7px; }
#aube-global-sidecart-root .aube-cart-empty {
  background:#fff; border:1px solid var(--aube-beige); border-radius:12px;
  padding:20px 12px; color:var(--aube-muted); text-align:center; font-size:.8rem;
}
#aube-global-sidecart-root .aube-cart-item {
  background:#fff; border:1px solid var(--aube-beige); border-radius:13px;
  padding:9px; display:grid; grid-template-columns:54px minmax(0,1fr) auto;
  gap:9px; align-items:center;
}
#aube-global-sidecart-root .aube-cart-thumb {
  width:54px; height:54px; border-radius:11px; overflow:hidden;
  background:#f1ddd1; display:grid; place-items:center;
}
#aube-global-sidecart-root .aube-cart-thumb img {
  width:100%; height:100%; object-fit:cover; display:block;
}
#aube-global-sidecart-root .aube-cart-name {
  color:var(--aube-brown); font-size:.78rem; font-weight:850; line-height:1.2;
}
#aube-global-sidecart-root .aube-cart-details {
  margin-top:3px; color:var(--aube-muted); font-size:.65rem; line-height:1.35;
}
#aube-global-sidecart-root .aube-cart-details details summary {
  cursor:pointer; color:var(--aube-brown); font-weight:750; margin-top:3px;
}
#aube-global-sidecart-root .aube-cart-details details > div { margin-top:2px; }
#aube-global-sidecart-root .aube-cart-right { text-align:right; }
#aube-global-sidecart-root .aube-cart-line-price {
  color:var(--aube-brown); font-size:.76rem; font-weight:900; white-space:nowrap;
}
#aube-global-sidecart-root .aube-cart-qty {
  display:flex; justify-content:flex-end; align-items:center; gap:4px;
  margin-top:5px; position:relative;
}
#aube-global-sidecart-root .aube-cart-qty button {
  width:29px; height:29px; border:1px solid var(--aube-beige);
  border-radius:8px; background:#fff; color:var(--aube-brown);
  font-weight:900; cursor:pointer; padding:0;
}
#aube-global-sidecart-root .aube-cart-qty output {
  min-width:18px; text-align:center; color:var(--aube-brown);
  font-size:.72rem; font-weight:850;
}
#aube-global-sidecart-root .aube-cart-qty-spinner {
  width:14px; height:14px; box-sizing:border-box; border-radius:50%;
  border:2px solid rgba(200,90,50,.20); border-top-color:#c85a32;
  display:none; flex:0 0 14px; margin-left:3px;
  animation:aube-cart-qty-spin .62s linear infinite;
}
#aube-global-sidecart-root .aube-cart-qty.is-updating .aube-cart-qty-spinner { display:inline-block; }
#aube-global-sidecart-root .aube-cart-qty.is-updating button { opacity:.42; cursor:wait; pointer-events:none; }
#aube-global-sidecart-root .aube-cart-item.is-updating .aube-cart-remove { opacity:.42; pointer-events:none; }
@keyframes aube-cart-qty-spin { to { transform:rotate(360deg); } }

#aube-global-sidecart-root .aube-cart-remove {
  margin-top:3px; border:0; background:transparent; color:var(--aube-muted);
  text-decoration:underline; text-underline-offset:2px; font-size:.62rem;
  cursor:pointer; padding:0;
}

#aube-global-sidecart-root .aube-minimum {
  background:#fff; border:1px solid var(--aube-beige); border-radius:12px;
  padding:10px; margin-top:10px;
}
#aube-global-sidecart-root .aube-minimum-top {
  display:flex; justify-content:space-between; gap:8px;
  color:var(--aube-brown); font-size:.72rem; font-weight:850;
}
#aube-global-sidecart-root .aube-minimum-top span:last-child { color:var(--aube-orange); }
#aube-global-sidecart-root .aube-progress {
  height:6px; background:#eee4dd; border-radius:999px; overflow:hidden; margin:7px 0 5px;
}
#aube-global-sidecart-root .aube-progress-fill {
  height:100%; width:0; background:var(--aube-orange);
  border-radius:999px; transition:width .2s ease;
}
#aube-global-sidecart-root .aube-minimum-msg {
  color:var(--aube-muted); font-size:.66rem; line-height:1.4;
}
#aube-global-sidecart-root .aube-help-toggle {
  border:0; background:transparent; color:var(--aube-muted);
  text-decoration:underline; text-underline-offset:2px;
  min-height:32px; padding:7px 0 0; font-size:.65rem; font-weight:750; cursor:pointer;
}
#aube-global-sidecart-root .aube-code-panel {
  display:none; border-top:1px solid var(--aube-beige); margin-top:6px; padding-top:7px;
}
#aube-global-sidecart-root .aube-code-panel.is-open { display:block; }
#aube-global-sidecart-root .aube-code-panel p {
  color:var(--aube-muted); font-size:.65rem; line-height:1.4; margin:0 0 5px;
}
#aube-global-sidecart-root .aube-code-row {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px;
}
#aube-global-sidecart-root .aube-code-row input {
  min-width:0; width:100%; min-height:44px; border:1px solid var(--aube-beige);
  border-radius:9px; background:#fff; color:var(--aube-brown); padding:8px; font-size:16px;
}
#aube-global-sidecart-root .aube-code-row button {
  border:0; background:var(--aube-brown); color:#fff; border-radius:9px;
  padding:8px 11px; font-size:.68rem; font-weight:850; cursor:pointer;
}
#aube-global-sidecart-root .aube-code-message {
  min-height:0; margin-top:5px; font-size:.65rem; font-weight:800;
}
#aube-global-sidecart-root .aube-access-ok {
  display:none; background:#edf5ef; color:var(--aube-green); border:1px solid #dce9df;
  border-radius:10px; padding:8px; margin-top:9px; font-size:.68rem; font-weight:850;
}
#aube-global-sidecart-root .aube-access-ok.is-visible { display:block; }

#aube-global-sidecart-root .aube-cart-totals { display:grid; gap:5px; margin-top:10px; }
#aube-global-sidecart-root .aube-cart-row {
  display:flex; justify-content:space-between; gap:8px;
  color:var(--aube-muted); font-size:.72rem;
}
#aube-global-sidecart-root .aube-cart-row.total {
  border-top:1px solid var(--aube-beige); padding-top:8px; margin-top:2px;
  color:var(--aube-brown); font-size:1rem; font-weight:900;
}
#aube-global-sidecart-root .aube-sidecart-actions {
  display:grid; gap:7px; margin-top:auto; padding-top:12px;
}
#aube-global-sidecart-root .aube-btn-continue {
  min-height:46px; border:2px solid var(--aube-brown); background:var(--aube-cream);
  color:var(--aube-brown); border-radius:11px; font-size:.72rem; font-weight:900; cursor:pointer;
}
#aube-global-sidecart-root .aube-btn-cart {
  min-height:44px; border:1px solid var(--aube-beige); background:#fff;
  color:var(--aube-brown); border-radius:11px; font-size:.72rem; font-weight:850; cursor:pointer;
}
#aube-global-sidecart-root .aube-btn-checkout {
  min-height:48px; border:0; background:#c9c1bc; color:#fff;
  border-radius:11px; font-size:.76rem; font-weight:900; cursor:not-allowed;
}
#aube-global-sidecart-root .aube-btn-checkout.is-enabled { background:var(--aube-brown); cursor:pointer; }
#aube-global-sidecart-root .aube-sidecart-status {
  display:none; background:#edf5ef; color:var(--aube-green);
  border-radius:9px; padding:7px; font-size:.66rem; font-weight:850;
}
body.aube-cart-open { overflow:hidden !important; }

@media (max-width:768px) {
  #aube-global-sidecart-root .aube-sidecart { width:100%; border-left:0; }
}
@media (prefers-reduced-motion:reduce) {
  #aube-global-sidecart-root .aube-sidecart,
  #aube-global-sidecart-root .aube-sidecart-overlay { transition:none; }
  #aube-global-sidecart-root .aube-cart-qty-spinner { animation-duration:1.25s; }
}
