/* DulceCarlota Entregas — checkout/carrito. Tokens de la paleta del tema miga con respaldo. */
.dcent, .dcent-cart-notice, .dcent-product-notice, .dcent-order-box, .dcent-addons, .dcent-yape {
	--dc-plum: var(--wp--preset--color--ciruela, #35232B);
	--dc-blush: var(--wp--preset--color--fondo, #FFF1F5);
	--dc-rose: var(--wp--preset--color--superficie, #FADDE1);
	--dc-pink: var(--wp--preset--color--rosa, #FFCAD4);
	--dc-peach: var(--wp--preset--color--rosa-fuerte, #FCD5CE);
	--dc-mauve: var(--wp--preset--color--mauve, #EADBDD);
	--dc-sage: var(--wp--preset--color--salvia, #E7EFE5);
	--dc-sage-d: var(--wp--preset--color--salvia-oscuro, #5F735A);
	--dc-white: var(--wp--preset--color--blanco, #FFFFFF);
}
.dcent { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.dcent.is-busy .dcent-cal, .dcent.is-busy .dcent-slots { opacity: .65; transition: opacity .15s; }
.dcent-lead { margin: 0 0 14px; font-size: .92em; color: var(--dc-plum); }
.dcent .wc-block-components-checkout-step__container { container-type: inline-size; }
.dcent-cal { display: grid; gap: 18px; }
@container (min-width: 640px) { .dcent-cal { grid-template-columns: 1fr 1fr; } }
.dcent-cal__title { margin: 0 0 6px; font-weight: 600; text-transform: capitalize; font-size: .95em; }
.dcent-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dcent-cal__dow { text-align: center; font-size: .72em; font-weight: 600; opacity: .7; padding-bottom: 2px; }
.dcent-day {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 46px; padding: 4px 0; border-radius: 12px; border: 1px solid var(--dc-mauve);
	background: var(--dc-white); color: var(--dc-plum); font: inherit; line-height: 1.1; cursor: pointer;
}
.dcent-day__n { font-weight: 600; font-size: .95em; }
.dcent-day__tag { font-size: 10px; letter-spacing: .01em; margin-top: 2px; white-space: nowrap; }
.dcent-day--available:hover { background: var(--dc-blush); border-color: var(--dc-pink); }
.dcent-day--surcharge { background: var(--dc-peach); border-color: #f2b8ac; }
.dcent-day--urgent { border-style: dashed; }
.dcent-day--full { background: repeating-linear-gradient(135deg, #f6eef0 0 6px, #fff 6px 12px); color: #8a6f78; cursor: not-allowed; }
.dcent-day--full .dcent-day__n { text-decoration: line-through; }
.dcent-day--closed, .dcent-day--too_soon { background: transparent; border-color: transparent; color: #a8959c; cursor: not-allowed; }
.dcent-day.is-selected { background: var(--dc-plum); border-color: var(--dc-plum); color: var(--dc-white); box-shadow: 0 0 0 3px var(--dc-pink); }
.dcent-day:focus-visible, .dcent-slot:focus-within, .dcent-chip:focus-within { outline: 2px solid var(--dc-plum); outline-offset: 2px; }
.dcent-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 10px 0 0; padding: 0; font-size: .78em; }
.dcent-legend li { display: flex; align-items: center; gap: 6px; }
.dcent-legend__sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--dc-mauve); background: #fff; }
.dcent-legend__sw--surcharge { background: var(--dc-peach); border-color: #f2b8ac; }
.dcent-legend__sw--full { background: repeating-linear-gradient(135deg, #f6eef0 0 3px, #fff 3px 6px); }
.dcent-legend__sw--closed { background: transparent; border-style: dashed; }
.dcent-slots { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.dcent-slots legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.dcent-daynote { margin: 0 0 8px; font-size: .85em; }
.dcent-slots__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.dcent-slot { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--dc-mauve); border-radius: 14px; background: #fff; cursor: pointer; min-height: 44px; }
.dcent-slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dcent-slot__time { font-weight: 600; }
.dcent-slot__sub { font-size: .8em; opacity: .8; }
.dcent-slot.is-on { background: var(--dc-pink); border-color: var(--dc-plum); }
.dcent-slot--full, .dcent-slot--too_soon { background: #f7f2f3; color: #8a6f78; cursor: not-allowed; }
.dcent-slot--full .dcent-slot__time { text-decoration: line-through; }
.dcent-slot--full input, .dcent-slot--too_soon input { cursor: not-allowed; }
.dcent-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--dc-sage); color: #2f3d2c; font-size: .88em; }
.dcent-note--fee { background: var(--dc-peach); color: var(--dc-plum); }
.dcent-note--warn { margin: 0 0 14px; background: #fff4d6; color: #4d3a00; border: 1px solid #f0c75e; }
.dcent-error { margin: 12px 0 0; color: #b3261e; font-weight: 600; font-size: .9em; }
.dcent-zone { margin: 14px 0 0; display: grid; gap: 6px; }
.dcent-zone select, .dcent-text { min-height: 44px; border: 1px solid var(--dc-mauve); border-radius: 10px; padding: 8px 12px; font: inherit; background: #fff; }
.dcent-check { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.dcent-method { display: flex; gap: 8px; margin: 0 0 14px; }
.dcent-chip { position: relative; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--dc-mauve); background: #fff; cursor: pointer; }
.dcent-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.dcent-chip.is-on { background: var(--dc-pink); border-color: var(--dc-plum); font-weight: 600; }
.dcent-cart-notice, .dcent-product-notice { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: var(--dc-blush); border: 1px solid var(--dc-pink); color: var(--dc-plum); font-size: .88em; line-height: 1.45; }
.dcent-order-box { margin: 20px 0; padding: 14px 18px; border-radius: 14px; background: var(--dc-blush); border: 1px solid var(--dc-pink); color: var(--dc-plum); }
.dcent-order-box h2, .dcent-order-box h3 { margin: 0 0 8px; font-size: 1.05em; }
.dcent-order-box p { margin: 4px 0; }
/* Urgencia / WhatsApp */
.dcent-day--whatsapp { background: #eef7f1; border-color: #9cc9ad; color: #1d5a3a; cursor: not-allowed; }
.dcent-slot--whatsapp { background: #eef7f1; color: #1d5a3a; cursor: not-allowed; }
.dcent-slot--urgent { border-style: dashed; }
.dcent-wa { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: #1F7A4D; color: #fff !important; font-weight: 700; text-decoration: none; line-height: 1.2; }
.dcent-wa:hover, .dcent-wa:focus-visible { background: #17603c; color: #fff; }
.dcent-wa:focus-visible { outline: 2px solid var(--dc-plum, #35232B); outline-offset: 2px; }
.dcent-note .dcent-wa { margin-top: 8px; }
.dcent-note p { margin: 0; }
.dcent-help { display: block; margin: 4px 0 0; font-size: .8em; opacity: .85; }
/* Dirección y ubicación */
.dcent-addr { margin-top: 14px; display: grid; gap: 4px; }
.dcent-field { margin: 0 0 8px; display: grid; gap: 4px; }
.dcent-field label { font-size: .88em; font-weight: 600; }
.dcent-loc { margin-top: 6px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--dc-pink); background: #fff; }
.dcent-loc__title { margin: 0 0 8px; font-weight: 600; font-size: .9em; }
.dcent-loc__row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 8px; }
.dcent-loc__ok { font-size: .85em; color: var(--dc-sage-d); }
.dcent-btn-sec { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--dc-plum); background: #fff; color: var(--dc-plum); font: inherit; font-weight: 600; cursor: pointer; }
.dcent-btn-sec:hover { background: var(--dc-blush); }
.dcent-linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; }
.dcent-privacy { margin: 6px 0 0; font-size: .78em; opacity: .85; line-height: 1.4; }
/* Política */
.dcent-policy { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--dc-blush); border: 1px solid var(--dc-pink); }
.dcent-policy.has-error { border-color: #b3261e; }
.dcent-policy__sum summary { cursor: pointer; font-weight: 600; font-size: .9em; min-height: 32px; }
.dcent-policy__sum ul { margin: 6px 0 8px 18px; padding: 0; font-size: .85em; line-height: 1.45; }
.dcent-policy__check { align-items: flex-start; font-size: .9em; }
.dcent-policy__check input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--dc-plum); }
/* Yape (checkout) */
.dcent-yape p { margin: 0 0 6px; }
.dcent-yape__amount strong { font-size: 1.15em; }
.dcent-yape ul { margin: 4px 0 0 18px; padding: 0; font-size: .88em; }
/* Confirmación / Mi cuenta */
.dcent-status { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--dc-pink); font-weight: 600; }
.dcent-status--pending, .dcent-status--quote { background: #fff4d6; border-color: #f0c75e; color: #4d3a00; }
.dcent-status--ok { background: var(--dc-sage); border-color: #b9cdb4; color: #2f3d2c; }
.dcent-status--expired { background: #fde7ea; border-color: #e3a3b1; color: #8a1f35; }
.dcent-yape-pay { margin: 10px 0; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--dc-pink); text-align: center; }
.dcent-yape-pay__qr { display: block; width: 200px; max-width: 100%; height: auto; margin: 0 auto 8px; border-radius: 10px; }
.dcent-amounts { display: grid; gap: 4px; margin: 10px 0; }
.dcent-amounts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--dc-mauve); padding: 3px 0; }
.dcent-amounts dt { margin: 0; }
.dcent-amounts dd { margin: 0; font-weight: 700; }
.dcent-delivery-lines { margin-top: 8px; }
.dcent-wa-wrap { margin-top: 12px !important; }
.dcent-btn { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--dc-plum); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
/* Personalizaciones (ficha de producto) */
.dcent-addons { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--dc-pink); background: var(--dc-blush); color: var(--dc-plum); }
.dcent-addons legend { font-weight: 700; padding: 0 4px; }
.dcent-addon { margin: 4px 0; }
.dcent-addon .dcent-check input { width: 20px; height: 20px; accent-color: var(--dc-plum); }
.dcent-addon__price { font-size: .85em; opacity: .85; margin-left: 4px; }
.dcent-addon__text { display: none; margin: 0 0 6px 28px; font-size: .85em; }
.dcent-addon__text span { display: block; margin-bottom: 2px; }
.dcent-addon__text input { width: 100%; max-width: 360px; }
.dcent-addon:has(input[type=checkbox]:checked) .dcent-addon__text { display: block; }
.dcent-addons__note { margin: 6px 0 0; font-size: .8em; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .dcent * { transition: none !important; } }
