/******* Do not edit this file *******
Code Snippets Manager
Saved: Nov 04 2026 | 08:44:25 */
/* SWAD — Habillage du panier « Tu pedido » (widget panier natif WooCommerce, classe .swad-panier).
   Sorti du Custom CSS des reglages de la page 280 le 8 septembre 2026, meme incident. */

/* ==== PANIER SWAD : habillage du widget panier natif WooCommerce ==== */
.swad-panier{font-family:inherit}
.swad-panier .widget_shopping_cart_content{font-family:inherit}
.swad-panier ul.woocommerce-mini-cart{margin:0;padding:0;list-style:none}
.swad-panier li.woocommerce-mini-cart-item{position:relative;display:block;padding:12px 22px 12px 0;margin:0;border-bottom:1px solid #E9E9E9;font-size:14px;line-height:1.45;color:#707070}
.swad-panier li.woocommerce-mini-cart-item:last-of-type{border-bottom:0}
.swad-panier li.woocommerce-mini-cart-item a:not(.remove){display:block;font-size:15px;font-weight:700;color:#663333;text-decoration:none}
.swad-panier li.woocommerce-mini-cart-item a:not(.remove):hover{color:#8A7200}
.swad-panier .woocommerce-mini-cart-item .variation{margin:2px 0 4px;font-size:13px;color:#707070}
.swad-panier .woocommerce-mini-cart-item .variation dt,.swad-panier .woocommerce-mini-cart-item .variation dd{display:inline;margin:0;font-weight:400}
.swad-panier .woocommerce-mini-cart-item .quantity{display:block;font-size:14px;color:#212529}
.swad-panier li.woocommerce-mini-cart-item a.remove{position:absolute;top:12px;right:0;width:20px;height:20px;line-height:18px;text-align:center;font-size:16px;color:#B9B9B9!important;background:transparent!important;border-radius:50%}
.swad-panier li.woocommerce-mini-cart-item a.remove:hover{color:#DC3545!important;background:#FCEAEC!important}
/* totaux */
.swad-panier .woocommerce-mini-cart__total{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:14px 0 0;padding:14px 0 0;border-top:2px solid #663333;font-size:16px;font-weight:700;color:#212529}
.swad-panier .woocommerce-mini-cart__total strong{font-weight:600;color:#707070}
.swad-panier .woocommerce-mini-cart__total .amount{font-size:20px;font-weight:700;color:#663333}
/* boutons */
.swad-panier .woocommerce-mini-cart__buttons{display:flex;flex-direction:column;gap:8px;margin:14px 0 0;padding:0}
.swad-panier .woocommerce-mini-cart__buttons a{display:block;width:100%;margin:0;padding:12px 14px;text-align:center;font-size:15px;font-weight:600;border-radius:24px;text-decoration:none;transition:background .15s ease,color .15s ease}
.swad-panier .woocommerce-mini-cart__buttons a.checkout{order:1;background:#198754!important;color:#fff!important}
.swad-panier .woocommerce-mini-cart__buttons a.checkout:hover{background:#146C43!important}
.swad-panier .woocommerce-mini-cart__buttons a:not(.checkout){order:2;background:transparent!important;color:#663333!important;border:2px solid #663333}
.swad-panier .woocommerce-mini-cart__buttons a:not(.checkout):hover{background:#663333!important;color:#fff!important}
/* panier vide */
.swad-panier .woocommerce-mini-cart__empty-message{margin:0;padding:8px 0;font-size:14px;color:#707070;text-align:center}
/* la variation heritait d'un filet et d'un retrait du theme */
.swad-panier .woocommerce-mini-cart-item .variation{border-left:0!important;padding-left:0!important;margin:2px 0 4px}
.swad-panier .woocommerce-mini-cart-item .variation dt{display:inline;margin:0 4px 0 0;font-weight:400}
.swad-panier .woocommerce-mini-cart-item .variation dd{display:inline;margin:0}
.swad-panier .woocommerce-mini-cart-item .variation dd p{display:inline;margin:0}
/* les plats n'ont pas de photo : la vignette n'affiche qu'un cadre vide */
.swad-panier .woocommerce-mini-cart-item img{display:none!important}
/* ==== FIN PANIER SWAD ==== */

/* ==== Bouton « Vaciar carrito » (Figma 33:2) — 8 sept. 2026 ==== */
.swad-panier .woocommerce-mini-cart__buttons a.swad-vaciar{text-transform:uppercase;letter-spacing:.03em;font-size:14px}
.swad-panier .woocommerce-mini-cart__buttons a.swad-vaciar.swad-vaciar--busy{opacity:.55;pointer-events:none}
/* ==== 8 sept. 2026 : croix de suppression plus visible ==== */
.swad-panier li.woocommerce-mini-cart-item a.remove{width:22px;height:22px;line-height:20px;font-size:17px;font-weight:700;color:#fff!important;background:#663333!important;border-radius:50%;top:12px;right:0;transition:background .15s ease}
.swad-panier li.woocommerce-mini-cart-item a.remove:hover{color:#fff!important;background:#DC3545!important}
.swad-panier li.woocommerce-mini-cart-item{padding-right:30px}

/* ==== Ligne IVA (incluido) sous le sous-total ==== */
.swad-panier .swad-mini-cart__iva{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:6px 0 0;padding:0;font-size:14px;color:#707070}
.swad-panier .swad-mini-cart__iva .swad-mini-cart__iva-amount,.swad-panier .swad-mini-cart__iva .amount{font-size:14px;font-weight:600;color:#707070}

/* ==== Bloc « Información de reparto » ==== */
.swad-reparto{width:100%;font-size:14px;color:#707070;line-height:1.45}
.swad-reparto ul{margin:0;padding:0;list-style:none}
.swad-reparto__lista>li{padding:8px 0;border-bottom:1px solid #E9E9E9}
.swad-reparto__lista>li:last-child{border-bottom:0}
.swad-reparto__lista>li,.swad-reparto__grupo ul li{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.swad-reparto__grupo{flex-direction:column;align-items:stretch!important}
.swad-reparto__grupo ul{margin-top:4px}
.swad-reparto__grupo ul li{padding:2px 0 2px 14px}
.swad-reparto__k{font-weight:700;color:#663333}
.swad-reparto__grupo ul .swad-reparto__k{font-weight:400;color:#707070}
.swad-reparto__v{font-weight:600;color:#212529;white-space:nowrap}
.swad-reparto__nota{margin:10px 0 0;font-size:13px;font-style:italic;color:#707070;text-align:center}
/* ==== Avisos de Woo dentro de Tu pedido (10 sept. 2026, snippet 364) ==== */
.swad-panier .swad-panier__avisos{margin:0 0 10px}
.swad-panier .swad-panier__avisos .woocommerce-error,.swad-panier .swad-panier__avisos .woocommerce-info,.swad-panier .swad-panier__avisos .woocommerce-message{margin:0 0 8px;padding:10px 12px;border:0;border-radius:12px;font-size:13px;line-height:1.4;list-style:none;background:#FCEAEC;color:#842029}
.swad-panier .swad-panier__avisos .woocommerce-info{background:#F8F9FA;color:#707070}
.swad-panier .swad-panier__avisos li{margin:0;padding:0}
.swad-panier .swad-panier__avisos .woocommerce-error::before,.swad-panier .swad-panier__avisos .woocommerce-info::before{display:none}

/* Aviso de pedido mínimo del plugin OMA dentro de Tu pedido (posición: antes del mini cart) */
.swad-panier .alg-wc-oma-msg{margin:0 0 12px;padding:10px 12px;border-radius:12px;background:#FCEAEC;color:#842029;font-size:13px;line-height:1.4}
.swad-panier .alg-wc-oma-msg .amount{font-weight:700;color:#842029}

/* Foco visible en los «+» y en la modal (QA 28/10) */
.jet-popup-target[role=button]{cursor:pointer}
.jet-popup-target[role=button]:focus-visible{outline:2px solid #663333;outline-offset:3px;border-radius:50%}
.jet-popup [tabindex="-1"]:focus{outline:none}

/* Indicador de carga del «+» (QA 29/10) */
@keyframes swad-giro{to{transform:rotate(360deg)}}
.jet-popup-target.swad-cargando .elementor-icon{position:relative;pointer-events:none}
.jet-popup-target.swad-cargando .elementor-icon svg{opacity:0}
.jet-popup-target.swad-cargando .elementor-icon::after{content:"";position:absolute;inset:22%;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:swad-giro .7s linear infinite}
@media (prefers-reduced-motion:reduce){.jet-popup-target.swad-cargando .elementor-icon::after{animation-duration:2s}}


/* ORDERING PAUSE (30 Oct 2026, QA front): see snippet 309, section 4.
   While the 'Web abierta' switch is OFF, PHP adds the body class .swad-pedidos-cerrados:
   hide the '+' buttons of the menu (adding is also refused server-side) and style the
   [swad_aviso_cierre] banner placed at the top of the Carta page (Elementor shortcode widget). */
.swad-pedidos-cerrados .swad-plus { display: none !important; }
/* While ordering is open the banner widget is empty: remove it so it adds no extra gap. */
body:not(.swad-pedidos-cerrados):not(.swad-hay-aviso) .elementor-element-aviso-cierre { display: none; }
.swad-aviso-cierre {
	background: #fdf3f0;
	border: 1px solid #663333;
	border-left-width: 6px;
	border-radius: 8px;
	color: #663333;
	padding: 14px 18px;
	margin: 8px 0 16px;
	font-size: 16px;
	line-height: 1.5;
}
.swad-aviso-cierre strong { display: block; font-size: 18px; margin-bottom: 4px; }

/* 1 Nov 2026 (QA front, plan item 12 / U-47): remove button was 22 px, too small on touch screens. */
@media (max-width:1024px){.swad-panier li.woocommerce-mini-cart-item a.remove{width:32px;height:32px;line-height:30px;font-size:20px}.swad-panier ul li.woocommerce-mini-cart-item{padding-left:42px!important;min-height:40px}.elementor-menu-cart__main li.woocommerce-mini-cart-item a.remove{width:32px!important;height:32px!important;min-width:32px;line-height:32px!important;font-size:20px!important;display:inline-flex!important;align-items:center;justify-content:center}} /* same fix for the mobile «Ver pedido» off-canvas cart (Elementor Menu Cart widget, was 16 px) */

/* 2 Nov 2026 (snippet 309): grace window for carts already started, and «closed today, order for tomorrow». */
.swad-aviso-cierre--gracia, .swad-aviso-cierre--preorden { background: #fbf8e9; border-color: #8A7200; color: #4d4100; }
