/* KYPSA – Murales sur soumission */
.km-hidden-row { display: none !important; }
.km-ready .woocommerce-variation-add-to-cart,
.km-ready .single_variation_wrap .single_variation { display: none !important; }
/* Les deux boutons : empilés, pleine largeur, espacés. Ils gardent le style des boutons du site (Astra) ;
   la soumission = bouton principal (plein foncé, beige au survol, comme partout sur le site),
   l'échantillon = bouton secondaire en contour (fond blanc, beige au survol). */
.km-actions { margin: 28px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.km-actions .button { display: block; width: 100%; margin: 0 !important; text-align: center; }
.km-actions .km-btn-sample { background: #fff !important; color: var(--ast-global-color-1, #1b0f16) !important;
  box-shadow: inset 0 0 0 2px var(--ast-global-color-1, #1b0f16) !important; }
.km-actions .km-btn-sample:hover, .km-actions .km-btn-sample:focus { background: var(--ast-global-color-0, #b5a597) !important; color: var(--ast-global-color-1, #1b0f16) !important; }
.km-actions .button:disabled { opacity: .6; cursor: wait; }
.km-note { font-size: 13px; opacity: .75; margin: -4px 0 0; text-align: center; }
.km-msg { font-size: 14px; color: #9a1c1c; margin: 0; }
.km-msg:empty { display: none; }
.km-price { font-weight: 600; }

#km-modal { width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0;
  border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.25); color: inherit; font: inherit; background: #fff; }
#km-modal::backdrop { background: rgba(20,18,16,.55); }
#km-modal.km-fallback { position: fixed; inset: 16px; margin: auto; z-index: 99999; display: block; overflow: auto; }
.km-head { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 14px 20px; background: #fff; border-bottom: 1px solid #e6e1da; }
.km-head h2 { margin: 0; font-size: 19px; }
.km-head small { display: block; font-size: 13px; opacity: .75; font-weight: 400; }
.km-close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; color: inherit; }
.km-steps { display: flex; gap: 16px; font-size: 13px; padding: 10px 20px 0; opacity: .8; }
.km-steps span.on { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.km-body { padding: 16px 20px 20px; }
[data-km-step][hidden] { display: none !important; }

.km-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.km-grid .km-full { grid-column: 1 / -1; }
.km-body label { display: block; font-size: 14px; }
.km-body input:not([type=checkbox]), .km-body select, .km-body textarea { width: 100%; box-sizing: border-box; margin-top: 4px; }
.km-help { font-size: 13px; opacity: .75; margin: 8px 0; }
.km-crop { width: 100%; height: min(52vh, 440px); background: #eee; margin-top: 8px; }
.km-crop img { display: block; max-width: 100%; }
/* Cache les guides de Cropper.js (pointillés des tiers et petite croix au centre) */
#km-modal .cropper-dashed, #km-modal .cropper-center { display: none !important; }
.km-strip { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed rgba(255,255,255,.9); pointer-events: none; }
.km-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.km-area { font-size: 15px; }
.km-error { color: #9a1c1c; font-size: 14px; min-height: 1em; }
.km-warn { color: #8a5a00; font-size: 14px; margin: 8px 0 0; }
.km-warn:empty { display: none; }
.km-preview { display: flex; gap: 12px; align-items: center; padding: 10px; background: #f6f3ef; margin-bottom: 16px; font-size: 14px; }
.km-preview img { width: 120px; height: auto; max-height: 90px; object-fit: contain; background: #fff; flex: none; }
.km-consent { display: flex !important; gap: 8px; align-items: flex-start; }
.km-consent input { margin-top: 3px; }
.km-hp { position: absolute !important; left: -9999px !important; }
.km-thanks { text-align: center; padding: 30px 10px; }
.km-thanks pre { text-align: left; font-size: 12px; white-space: pre-wrap; background: #f6f3ef; padding: 12px; }
.km-link { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: inherit; font: inherit; }

@media (max-width: 600px) {
  .km-grid { grid-template-columns: 1fr; }
  #km-modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .km-crop { height: 45vh; }
}
