/* === GEKOMED - WOOCOMMERCE === (complete au chantier boutique) */

/* ============================================================
   Notices globales WC : success / info / error
   Rendues souvent HORS des wrappers .gkcart / .gkcheckout par les hooks
   woocommerce_before_cart / woocommerce_before_checkout_form. On les
   stylise donc globalement pour qu'elles soient coherentes partout.
   ============================================================ */

.woocommerce-notices-wrapper:empty { display: none; }

.woocommerce-notices-wrapper {
	max-width: 1180px;
	margin: 16px auto 0;
	padding: 0 32px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	background: var(--gk-green-soft);
	color: var(--gk-green-deep);
	border: 1px solid var(--gk-green-deep);
	border-radius: var(--gk-radius-md);
	padding: 14px 18px;
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
	list-style: none;
}
.woocommerce-error {
	background: #fdecea;
	color: #b73a30;
	border-color: #b73a30;
}
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	display: none; /* WC injecte un bouton "Restaurer" / "Retour boutique" par defaut, on cache */
}

@media (max-width: 720px) {
	.woocommerce-notices-wrapper { padding: 0 16px; }
}

/* ============================================================
   Mode pro : on masque le drawer panier et son bouton header.
   En espace pro, le SEUL moyen d'arriver au panier pro est de
   commander depuis /boutique-pro/ (le bouton "Commander" en bas
   du tableau lance directement le checkout pro).
   Classe body injectee par gekomed-business-rules.php > gk_is_pro_context().
   ============================================================ */
body.gk-pro-context #gk-cart-open,
body.gk-pro-context .gk-cart-drawer,
body.gk-pro-context #gk-cart-overlay,
body.gk-pro-context .gk-nav__divider,
body.gk-pro-context .gk-floatcta { display: none !important; }


/* ---------- Feuille de soins au checkout (ticket 59) ----------
   Rendu seulement pour le profil "droits Secu sans mutuelle", par
   gekomed-feuille-soins.php sur woocommerce_after_order_notes. */
.gkfds {
  margin: var(--gk-space-md) 0 0;
  padding: 18px 20px;
  background: var(--gk-green-pale);
  border: 1px solid var(--gk-line);
  border-radius: var(--gk-radius-md);
}
.gkfds__title {
  font-family: var(--gk-display);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.02em;
  color: var(--gk-green-deep);
  margin: 0 0 8px;
}
.gkfds__lede {
  font-size: 13px;
  line-height: 1.55;
  color: var(--gk-ink-soft);
  margin: 0 0 var(--gk-space-sm);
}
.gkfds__hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--gk-ink-soft);
  line-height: 1.4;
}
.gkfds__opt {
  font-weight: 400;
  color: var(--gk-ink-soft);
}
.gkfds__check label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--gk-ink);
  cursor: pointer;
  line-height: 1.4;
}
.gkfds__check input { margin-top: 2px; flex-shrink: 0; }
.gkfds__sub {
  padding: 14px 16px;
  margin-bottom: var(--gk-space-sm);
  background: var(--gk-paper);
  border: 1px solid var(--gk-line);
  border-radius: var(--gk-radius-sm);
}
.gkfds__sub[hidden] { display: none; }
.gkfds .input-text,
.gkfds select {
  width: 100%;
  border-radius: var(--gk-radius-sm);
}
