/* YIDRO carrito lateral v2 — paleta y tipografía de marca (identidad-marca-yidro.md). */
html.ycv2-lock, html.ycv2-lock body { overflow: hidden; }

.ycv2-fab {
	position: fixed; right: 16px; bottom: 100px; z-index: 9990;
	width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: #111827; color: #F8F9FA; box-shadow: 0 6px 18px rgba(17, 24, 39, .25); cursor: pointer;
}
.ycv2-fab[hidden] { display: none; }
.ycv2-fab:hover { background: #184156; }
.ycv2-fab__n {
	position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
	background: #FBBF24; color: #111827; font: 700 12px/22px Inter, sans-serif; text-align: center;
}

.ycv2-cart-overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(17, 24, 39, .45); }
.ycv2-cart-overlay[hidden] { display: none; }

.ycv2-cart {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 9999;
	width: 100%; max-width: 420px; height: 100%; height: 100dvh;
	display: flex; flex-direction: column;
	background: #FFFFFF; color: #111827; font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.45;
	box-shadow: -8px 0 32px rgba(17, 24, 39, .18);
	transform: translateX(105%); transition: transform .25s ease; visibility: hidden;
}
.ycv2-cart.is-open { transform: translateX(0); visibility: visible; }
.ycv2-cart *, .ycv2-cart *::before, .ycv2-cart *::after { box-sizing: border-box; }
.ycv2-cart.is-busy .ycv2-cart__body, .ycv2-cart.is-busy .ycv2-cart__foot { opacity: .55; pointer-events: none; }

.ycv2-cart__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #E5E7EB; }
.ycv2-cart__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.2; color: #111827; text-transform: none; letter-spacing: normal; }
.ycv2-cart__count { font-weight: 500; color: #374151; }
.ycv2-cart__close { margin-left: auto; width: 44px; height: 44px; padding: 0; border: 1px solid #E5E7EB; border-radius: 10px; background: #FFFFFF; color: #111827; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ycv2-cart__close:hover { border-color: #111827; }

.ycv2-cart__body { flex: 1 1 auto; overflow-y: auto; padding: 4px 16px 16px; -webkit-overflow-scrolling: touch; }
.ycv2-cart__msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #FEF2F2; border: 1px solid #FCA5A5; color: #7F1D1D; font-size: 14px; }
.ycv2-cart__items { list-style: none; margin: 0; padding: 0; }
.ycv2-ci { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid #E5E7EB; }
.ycv2-ci__img img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid #E5E7EB; display: block; background: #F8F9FA; }
.ycv2-ci__name { display: block; font-size: 15px; font-weight: 500; line-height: 1.35; color: #111827; text-decoration: none; }
.ycv2-ci__name:hover { text-decoration: underline; }
.ycv2-ci__row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ycv2-ci__qty { display: inline-flex; align-items: center; border: 1.5px solid #CBD5E1; border-radius: 8px; overflow: hidden; }
.ycv2-ci__qty button { width: 36px; height: 36px; padding: 0; border: 0; background: #FFFFFF; color: #111827; font: 700 18px/1 Inter, sans-serif; cursor: pointer; }
.ycv2-ci__qty button:disabled { opacity: .35; cursor: default; }
.ycv2-ci__qty span { min-width: 28px; text-align: center; font-weight: 700; }
.ycv2-ci__price { margin-left: auto; font-size: 15px; font-weight: 700; white-space: nowrap; color: #111827; }
.ycv2-ci__rm { margin-top: 6px; padding: 4px 0; border: 0; background: none; color: #374151; font: 500 13px Inter, sans-serif; text-decoration: underline; cursor: pointer; }

.ycv2-cart__empty { padding: 32px 0; text-align: center; }
.ycv2-cart__empty p { margin: 0 0 14px; font-size: 16px; color: #374151; }
.ycv2-cart__btn2 { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border: 1.5px solid #111827; border-radius: 8px; color: #111827; font-weight: 700; font-size: 14px; text-transform: uppercase; text-decoration: none; }

.ycv2-cart__suggest { margin-top: 16px; padding: 12px; border: 1px solid #E5E7EB; border-radius: 12px; background: #F8F9FA; }
.ycv2-sg__why { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #184156; }
.ycv2-sg { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.ycv2-sg__img img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #FFFFFF; display: block; }
.ycv2-sg__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ycv2-sg__name { font-size: 14px; font-weight: 500; line-height: 1.3; color: #111827; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ycv2-sg__badge { align-self: flex-start; padding: 1px 6px; border-radius: 4px; background: #00A6D1; color: #FFFFFF; font-size: 11px; font-weight: 700; }
.ycv2-sg__price { font-size: 14px; font-weight: 700; color: #111827; white-space: nowrap; }
.ycv2-sg__add { min-height: 40px; padding: 0 14px; border: 1.5px solid #111827; border-radius: 8px; background: #FFFFFF; color: #111827; font: 700 13px Inter, sans-serif; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.ycv2-sg__add:hover { background: #111827; color: #F8F9FA; }

.ycv2-cart__foot { flex: 0 0 auto; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #E5E7EB; background: #FFFFFF; box-shadow: 0 -6px 16px rgba(17, 24, 39, .06); }
.ycv2-cart__foot[hidden] { display: none; }
.ycv2-cart__eta { margin: 0 0 10px; padding: 9px 12px; border-radius: 8px; background: #F0FAFD; color: #184156; font-size: 13px; font-weight: 500; line-height: 1.4; }
.ycv2-cart__eta:empty { display: none; }
.ycv2-cart__line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #374151; margin: 0 0 4px; }
.ycv2-cart__sub { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 12px; font-size: 16px; font-weight: 700; }
.ycv2-cart__sub strong { font-size: 20px; font-weight: 900; }
.ycv2-cart__cta {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 12px 20px;
	border-radius: 10px; background: #111827; color: #F8F9FA !important; font: 700 16px/1.2 Inter, sans-serif; text-transform: uppercase; text-decoration: none !important;
}
.ycv2-cart__cta:hover { background: #184156; color: #FFFFFF !important; }
.ycv2-cart__keep { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 0; background: none; color: #111827; font: 500 14px Inter, sans-serif; text-decoration: underline; cursor: pointer; }

@media (max-width: 480px) {
	.ycv2-cart { max-width: 100%; }
}

/* ganarle al estilo de botones y títulos del tema/Elementor */
.ycv2-cart .ycv2-cart__title { text-transform: none !important; font-family: Inter, sans-serif !important; }
.ycv2-cart button.ycv2-cart__close { background: #FFFFFF !important; color: #111827 !important; border: 1px solid #E5E7EB !important; box-shadow: none !important; padding: 0 !important; }
.ycv2-cart button.ycv2-ci__rm { background: none !important; color: #374151 !important; border: 0 !important; box-shadow: none !important; padding: 4px 0 !important; min-height: 0 !important; text-transform: none !important; font: 500 13px Inter, sans-serif !important; text-decoration: underline !important; }
.ycv2-cart .ycv2-ci__qty button { background: #FFFFFF !important; color: #111827 !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; }
.ycv2-cart button.ycv2-cart__keep { background: none !important; color: #111827 !important; border: 0 !important; box-shadow: none !important; text-transform: none !important; font: 500 14px Inter, sans-serif !important; text-decoration: underline !important; }
.ycv2-cart button.ycv2-sg__add { background: #FFFFFF !important; color: #111827 !important; border: 1.5px solid #111827 !important; box-shadow: none !important; }
.ycv2-cart button.ycv2-sg__add:hover { background: #111827 !important; color: #F8F9FA !important; }
.ycv2-fab { padding: 0 !important; }

.ycv2-cart__trust { margin: 8px 0 0; font-size: 12px; line-height: 1.4; text-align: center; color: #374151; }
.ycv2-cart .ycv2-ci__qty button { width: 40px !important; height: 40px !important; }

/* ronda 3: ganarle al kit de Elementor */
.ycv2-cart .ycv2-cart__title { font-size: 18px !important; line-height: 1.2 !important; font-weight: 700 !important; }
.ycv2-cart a.ycv2-cart__cta { font: 700 16px/1.2 Inter, sans-serif !important; text-transform: uppercase !important; }
.ycv2-cart a.ycv2-ci__name, .ycv2-cart a.ycv2-sg__name { color: #111827 !important; font-size: 15px !important; font-weight: 500 !important; text-decoration: none; }
.ycv2-cart a.ycv2-sg__name { font-size: 14px !important; }
.ycv2-cart .ycv2-sg__badge { color: #111827; background: #E6F6FB; border: 1px solid #00A6D1; }
.ycv2-cart .ycv2-ci__qty button { width: 44px !important; height: 44px !important; }
.ycv2-cart button.ycv2-ci__rm { min-height: 44px !important; padding: 12px 0 !important; }
.ycv2-cart button.ycv2-sg__add { min-height: 44px !important; }
.ycv2-cart__logos { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.ycv2-cart__logos img { width: 36px; height: 24px; object-fit: contain; }

.ycv2-cart button.ycv2-ci__rm { min-width: 44px !important; }
.ycv2-cart button.ycv2-cart__keep { min-height: 44px !important; }
