/* DP Clean Checkout · checkout y carrito estilo Shopify */
:root { --dpck-primary: #111; --dpck-primary-text: #fff; --dpck-accent: #2563EB; }
.dpck, .dpck-cartpage, .dpck-focus { --ink: #1a1a1a; --muted: #707070; --line: #dedede; --soft: #f5f5f5; --err: #d72c0d; --r: 8px; }
.dpck *, .dpck-cartpage * { box-sizing: border-box; }

/* ---------- Modo sin distracciones ---------- */
body.dpck-focus { margin: 0; background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; }
.dpck-top { border-bottom: 1px solid var(--line); background: #fff; }
.dpck-top-in { max-width: 1100px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
.dpck-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.dpck-logo img { max-height: 44px; width: auto; display: block; }
.dpck-brand { font-size: 22px; font-weight: 700; }
.dpck-top-cart { color: var(--dpck-accent); display: inline-flex; }
.dpck-page { min-height: calc(100vh - 140px); }
.dpck-page > .woocommerce, .dpck-page > .woocommerce-notices-wrapper { max-width: none; margin: 0; padding: 0; }
.dpck-foot { max-width: 1100px; margin: 0 auto; padding: 18px 24px 28px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; }
.dpck-foot a { color: var(--dpck-accent); }

/* ---------- Estructura ---------- */
.dpck { color: var(--ink); font-size: 14px; }
.dpck-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); max-width: 1100px; margin: 0 auto; }
.dpck-main { padding: 32px 44px 48px 24px; min-width: 0; }
.dpck-side { background: var(--soft); border-left: 1px solid var(--line); min-width: 0; }
.dpck-side-in { position: sticky; top: 0; padding: 32px 24px 32px 40px; max-width: 460px; }
/* Pantalla dividida en dos mitades (como Shopify) */
body.dpck-focus .dpck-grid { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 81px); }
body.dpck-focus .dpck-main { padding: 32px 48px 48px 24px; }
body.dpck-focus .dpck-main > * { max-width: 560px; margin-left: auto; }
body.dpck-focus .dpck-main > .dpck-step { margin-left: auto; }
body.dpck-focus .dpck-side-in { padding: 32px 24px 40px 48px; max-width: 520px; }
body.dpck-focus .dpck-top-in { max-width: 1168px; }
body.dpck-focus .dpck-foot { border-top: 1px solid var(--line); background: #fff; max-width: none; padding-left: max(24px, calc(50% - 560px)); }
body:not(.dpck-focus) .dpck-grid { gap: 28px; }
body:not(.dpck-focus) .dpck-main { padding: 8px 0 32px; }
body:not(.dpck-focus) .dpck-side { border: 1px solid var(--line); border-radius: 12px; align-self: start; }
body:not(.dpck-focus) .dpck-side-in { padding: 24px; }

.dpck-h { font-size: 19px !important; font-weight: 600 !important; margin: 0 0 14px !important; color: var(--ink) !important; letter-spacing: 0 !important; line-height: 1.3 !important; text-transform: none !important; }
.dpck-block { margin: 0 0 28px; }
.dpck-muted { color: var(--muted); }
.dpck-small { font-size: 12.5px; }
.dpck-label { margin: 6px 0 10px; font-weight: 600; }

/* Migas */
.dpck-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 26px; font-size: 12.5px; }
.dpck-crumbs a, .dpck-crumbs button { color: var(--dpck-accent); text-decoration: none; background: none !important; border: 0 !important; padding: 0 !important; font: inherit; cursor: pointer; box-shadow: none !important; min-height: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.dpck-crumbs button.is-on { color: var(--ink); font-weight: 600; cursor: default; }
.dpck-crumbs button:disabled { color: var(--muted); cursor: default; opacity: 1; }
.dpck-sep { color: var(--muted); }

/* ---------- Campos (etiqueta flotante como Shopify) ---------- */
.dpck .form-row { position: relative; margin: 0 0 12px !important; padding: 0 !important; width: 100%; float: none !important; }
.dpck .form-row-first, .dpck .form-row-last { width: calc(50% - 6px) !important; display: inline-block; vertical-align: top; }
.dpck .form-row-first { margin-right: 12px !important; }
.dpck .form-row > label:not(.checkbox):not(.woocommerce-form__label-for-checkbox) { position: absolute; z-index: 2; top: 7px; left: 13px; margin: 0 !important; font-size: 12px !important; line-height: 1.2 !important; color: var(--muted) !important; font-weight: 400 !important; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: none; }
.dpck .form-row > label .required, .dpck .form-row > label .optional { display: none; }
.dpck .form-row.is-filled > label:not(.checkbox):not(.woocommerce-form__label-for-checkbox) { opacity: 1; transform: none; }
.dpck .form-row input.input-text, .dpck .form-row select, .dpck .form-row textarea, .dpck .select2-container .select2-selection--single {
	width: 100% !important; height: 50px !important; margin: 0 !important; padding: 13px 13px !important; font: inherit !important; font-size: 15px !important; color: var(--ink) !important;
	background: #fff !important; border: 1px solid var(--line) !important; border-radius: var(--r) !important; box-shadow: none !important; outline: 0; transition: border-color .15s, box-shadow .15s; line-height: 1.3 !important;
}
.dpck .form-row textarea { height: 90px !important; resize: vertical; }
.dpck .form-row.is-filled input.input-text, .dpck .form-row.is-filled select, .dpck .form-row.is-filled .select2-selection--single { padding-top: 21px !important; padding-bottom: 5px !important; }
.dpck .form-row select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23707070' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; padding-right: 36px !important; }
.dpck .form-row select:disabled { color: var(--muted) !important; background-color: #fafafa !important; }
.dpck .form-row input:focus, .dpck .form-row select:focus, .dpck .form-row textarea:focus, .dpck .select2-container--focus .select2-selection--single, .dpck .select2-container--open .select2-selection--single { border-color: var(--dpck-accent) !important; box-shadow: 0 0 0 1px var(--dpck-accent) !important; }
.dpck .select2-container { width: 100% !important; }
.dpck .select2-selection__rendered { padding: 0 !important; line-height: 1.3 !important; color: var(--ink) !important; }
.dpck .select2-selection__arrow { height: 48px !important; right: 8px !important; }
.dpck .form-row.woocommerce-invalid input.input-text, .dpck .form-row.woocommerce-invalid select, .dpck .form-row.woocommerce-invalid .select2-selection { border-color: var(--err) !important; box-shadow: 0 0 0 1px var(--err) !important; }
.dpck .form-row.woocommerce-validated input.input-text { border-color: var(--line) !important; }
.dpck-ferr { display: block; margin-top: 5px; color: var(--err); font-size: 12.5px; }
.dpck .dpck-hide, .dpck #billing_country_field { display: none !important; }
.dpck .woocommerce-input-wrapper { display: block; width: 100%; }
.dpck .form-row .description { font-size: 12px; color: var(--muted); }
.dpck .form-row.create-account label, .dpck .woocommerce-form__label-for-checkbox { display: flex !important; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }

/* ---------- Despacho / Retiro ---------- */
.dpck-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.dpck-mode button { display: flex !important; align-items: center; gap: 10px; height: 54px !important; padding: 0 16px !important; border: 1px solid var(--line) !important; border-radius: var(--r) !important; background: #fff !important; color: var(--ink) !important; font: inherit !important; font-size: 15px !important; font-weight: 500 !important; cursor: pointer; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important; min-height: 0 !important; transition: border-color .15s, background .15s; }
.dpck-mode button svg { color: var(--muted); flex: 0 0 auto; }
.dpck-mode button[aria-selected="true"] { border-color: var(--dpck-accent) !important; box-shadow: 0 0 0 1px var(--dpck-accent) !important; background: color-mix(in srgb, var(--dpck-accent) 7%, #fff) !important; }
.dpck-mode button[aria-selected="true"] svg { color: var(--dpck-accent); }
.dpck[data-mode="pickup"] .dpck-ship-fields, .dpck[data-mode="ship"] .dpck-pickup-fields { display: none; }
.dpck[data-mode="pickup"] .dpck-only-ship, .dpck[data-mode="ship"] .dpck-only-pickup { display: none !important; }

/* Lista de opciones (envíos y retiros) */
.dpck-rates { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.dpck-rates.is-err { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.dpck-rates .dpck-empty { margin: 0; padding: 16px; color: var(--muted); background: var(--soft); }
.dpck-opt { display: flex; align-items: flex-start; gap: 12px; margin: 0 !important; padding: 15px 16px; border-top: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.dpck-opt:first-child { border-top: 0; }
.dpck-opt:has(input:checked) { background: color-mix(in srgb, var(--dpck-accent) 7%, #fff); box-shadow: inset 0 0 0 1px var(--dpck-accent); }
.dpck-opt input[type="radio"] { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 18px !important; height: 18px !important; margin: 1px 0 0 !important; border: 1px solid #bdbdbd; border-radius: 50%; background: #fff; display: grid; place-items: center; cursor: pointer; }
.dpck-opt input[type="radio"]:checked { border: 6px solid var(--dpck-accent); }
.dpck-opt input[type="radio"]:focus-visible { outline: 2px solid var(--dpck-accent); outline-offset: 2px; }
.dpck-opt-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dpck-opt-name { font-size: 14.5px; }
.dpck-opt-sub, .dpck-opt-note { font-size: 13px; color: var(--muted); }
.dpck-opt-price { font-weight: 600; white-space: nowrap; }
.dpck-free { color: #0b7a3b; }

/* Revisión (Contacto / Enviar a / Método) */
.dpck-review { border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; margin: 0 0 28px; }
.dpck-rv { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.dpck-rv:first-child { border-top: 0; }
.dpck-rv > span { color: var(--muted); }
.dpck-rv b { font-weight: 400; overflow-wrap: anywhere; }
.dpck-rv b .dpck-chosen b { font-weight: 600; }
.dpck-rv button { background: none !important; border: 0 !important; padding: 0 !important; color: var(--dpck-accent) !important; font: inherit !important; font-size: 12.5px !important; cursor: pointer; box-shadow: none !important; min-height: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.dpck[data-mode="pickup"] .dpck-rv-method { display: none; }

/* Botones de pasos */
.dpck-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.dpck-next, .dpck #place_order, .dpck-btn, .dpck-cartpage .checkout-button {
	display: inline-flex !important; align-items: center; justify-content: center; min-height: 54px !important; padding: 0 26px !important; border: 0 !important; border-radius: var(--r) !important;
	background: var(--dpck-primary) !important; color: var(--dpck-primary-text) !important; font: inherit !important; font-size: 15px !important; font-weight: 600 !important; line-height: 1.2 !important; letter-spacing: 0 !important; text-transform: none !important;
	cursor: pointer; text-decoration: none !important; box-shadow: none !important; transition: filter .15s, transform .05s; float: none !important; width: auto;
}
.dpck-next:hover, .dpck #place_order:hover, .dpck-btn:hover, .dpck-cartpage .checkout-button:hover { filter: brightness(1.12); }
.dpck-next:active, .dpck #place_order:active { transform: translateY(1px); }
.dpck-back { background: none !important; border: 0 !important; padding: 0 !important; color: var(--dpck-accent) !important; font: inherit !important; font-size: 14px !important; cursor: pointer; text-decoration: none !important; box-shadow: none !important; min-height: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }

/* ---------- Pago (pasarelas de WooCommerce) ---------- */
.dpck #payment { background: none !important; border-radius: 0 !important; padding: 0 !important; }
.dpck #payment ul.payment_methods { margin: 0 0 18px !important; padding: 0 !important; border: 1px solid var(--line) !important; border-radius: var(--r); overflow: hidden; list-style: none; background: #fff; }
.dpck #payment ul.payment_methods li { margin: 0 !important; padding: 0 !important; border-top: 1px solid var(--line); list-style: none !important; line-height: 1.4 !important; }
.dpck #payment ul.payment_methods li:first-child { border-top: 0; }
.dpck #payment ul.payment_methods li > input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dpck #payment ul.payment_methods li > label { display: flex !important; align-items: center; gap: 12px; margin: 0 !important; padding: 16px !important; font-size: 14.5px !important; font-weight: 400 !important; cursor: pointer; color: var(--ink) !important; }
.dpck #payment ul.payment_methods li > label::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; border: 1px solid #bdbdbd; border-radius: 50%; background: #fff; box-sizing: border-box; }
.dpck #payment ul.payment_methods li > input:checked + label { background: color-mix(in srgb, var(--dpck-accent) 7%, #fff); }
.dpck #payment ul.payment_methods li > input:checked + label::before { border: 6px solid var(--dpck-accent); }
.dpck #payment ul.payment_methods li > input:focus-visible + label { outline: 2px solid var(--dpck-accent); outline-offset: -2px; }
.dpck #payment ul.payment_methods li img { max-height: 24px; width: auto; margin: 0 0 0 auto !important; float: none !important; }
.dpck #payment div.payment_box { margin: 0 !important; padding: 16px 18px !important; background: var(--soft) !important; border-top: 1px solid var(--line); border-radius: 0 !important; font-size: 13.5px; color: #444 !important; }
.dpck #payment div.payment_box::before { display: none !important; }
.dpck #payment div.payment_box p:last-child { margin-bottom: 0; }
.dpck #payment .place-order { margin: 0 !important; padding: 0 !important; }
.dpck #payment #place_order { width: 100%; margin-top: 4px; font-size: 16px !important; }
.dpck .woocommerce-terms-and-conditions-wrapper { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.dpck .woocommerce-privacy-policy-text p { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.dpck .woocommerce-privacy-policy-text a, .dpck .woocommerce-terms-and-conditions-link { color: var(--dpck-accent); }
.dpck-notes { margin: 6px 0 0; }
.dpck-notes summary { cursor: pointer; color: var(--dpck-accent); font-size: 14px; margin-bottom: 10px; }

/* Avisos de WooCommerce */
.dpck .woocommerce-NoticeGroup, .dpck-page .woocommerce-notices-wrapper { max-width: 1100px; margin: 0 auto; }
.dpck .woocommerce-error, .dpck-cartpage .woocommerce-error, .dpck-page .woocommerce-error, .dpck-page .woocommerce-message, .dpck-page .woocommerce-info {
	margin: 0 0 18px !important; padding: 14px 16px 14px 44px !important; border: 1px solid #f2c4bb !important; border-radius: var(--r) !important; background: #fff4f2 !important; color: #8a1f0b !important; font-size: 13.5px; list-style: none; position: relative;
}
.dpck-page .woocommerce-message, .dpck-page .woocommerce-info { border-color: var(--line) !important; background: var(--soft) !important; color: var(--ink) !important; }
.dpck .woocommerce-error::before, .dpck-page .woocommerce-error::before, .dpck-page .woocommerce-message::before, .dpck-page .woocommerce-info::before { left: 16px !important; top: 14px !important; }
.dpck .woocommerce-error li { margin: 0; }

/* ---------- Resumen del pedido ---------- */
.dpck-items { list-style: none; margin: 0 0 20px !important; padding: 0 !important; display: grid; gap: 14px; }
.dpck-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 0 !important; }
.dpck-thumb { position: relative; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.dpck-thumb img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: calc(var(--r) - 1px); display: block; margin: 0 !important; }
.dpck-qty { position: absolute; top: -8px; right: -8px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: rgba(90, 90, 90, .92); color: #fff; font-size: 11.5px; font-weight: 600; display: grid; place-items: center; }
.dpck-item-info { display: grid; gap: 2px; font-size: 13.5px; min-width: 0; }
.dpck-item-name { font-weight: 500; }
.dpck-item-info dl.variation { margin: 0; font-size: 12px; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 0 6px; }
.dpck-item-info dl.variation dt, .dpck-item-info dl.variation dd { margin: 0 !important; padding: 0 !important; float: none !important; font-weight: 400 !important; }
.dpck-item-info dl.variation dd p { margin: 0; }
.dpck-item-price { font-size: 13.5px; white-space: nowrap; }
.dpck-coupon { display: flex; gap: 10px; margin: 0 0 6px; }
.dpck-coupon input { flex: 1; min-width: 0; height: 48px !important; padding: 0 13px !important; border: 1px solid var(--line) !important; border-radius: var(--r) !important; font: inherit !important; font-size: 14.5px !important; background: #fff !important; box-shadow: none !important; margin: 0 !important; }
.dpck-coupon input:focus { border-color: var(--dpck-accent) !important; box-shadow: 0 0 0 1px var(--dpck-accent) !important; outline: 0; }
.dpck-coupon button { height: 48px !important; min-height: 0 !important; padding: 0 18px !important; border: 1px solid var(--line) !important; border-radius: var(--r) !important; background: #ececec !important; color: #555 !important; font: inherit !important; font-size: 14px !important; font-weight: 600 !important; cursor: pointer; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important; margin: 0 !important; }
.dpck-coupon button:hover { background: #e2e2e2 !important; }
.dpck-coupon-msg { margin: 0 0 14px; font-size: 12.5px; min-height: 1px; }
.dpck-coupon-msg.is-err { color: var(--err); }
.dpck-coupon-msg.is-ok { color: #0b7a3b; }
.dpck-totals, .dpck-cart-sum { display: grid; gap: 9px; }
.dpck-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.dpck-row > span:first-child { color: #333; }
.dpck-discount { color: #0b7a3b; }
.dpck-discount a { color: var(--muted); font-size: 12px; margin-left: 4px; }
.dpck-total { margin-top: 6px; font-size: 17px; font-weight: 600; }
.dpck-total > span:last-child { font-size: 21px; }
.dpck-total small { font-size: 12px; font-weight: 400; color: var(--muted); }
.dpck-totals .includes_tax { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.dpck-side .blockUI.blockOverlay, .dpck .blockUI.blockOverlay { background: rgba(255, 255, 255, .55) !important; }

/* Resumen plegable en el celular */
.dpck-mob-summary { display: none; }

/* ---------- Página del carrito ---------- */
.dpck-cartpage { max-width: 1100px; margin: 0 auto; padding: 8px 0 40px; color: var(--ink); }
.dpck-cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.dpck-cart-head h1 { margin: 0 !important; font-size: 30px !important; font-weight: 600 !important; line-height: 1.2 !important; }
.dpck-cart-head a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.dpck-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.dpck-cart-cols { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px 110px; gap: 18px; padding: 0 0 12px; border-bottom: 1px solid var(--line); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dpck-cart-cols span:last-child { text-align: right; }
.dpck-cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px 110px; gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.dpck-cart-cols span:first-child { grid-column: span 2; }
.dpck-ci-thumb img { width: 96px !important; height: 96px !important; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); display: block; margin: 0 !important; }
.dpck-ci-name { font-size: 15px; font-weight: 500; }
.dpck-ci-name a { color: var(--ink); text-decoration: none; }
.dpck-ci-name a:hover { text-decoration: underline; }
.dpck-ci-unit { font-size: 13.5px; color: var(--muted); margin: 2px 0 4px; }
.dpck-ci-info dl.variation { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 0 6px; }
.dpck-ci-info dl.variation dt, .dpck-ci-info dl.variation dd { margin: 0 !important; padding: 0 !important; float: none !important; font-weight: 400 !important; }
.dpck-ci-info dl.variation dd p { margin: 0; }
.dpck-ci-qty { display: flex; align-items: center; gap: 12px; }
.dpck-ci-total { text-align: right; font-size: 15px; }
.dpck-cartpage .quantity { margin: 0 !important; }
.dpck-cartpage .quantity .screen-reader-text, .dpck-cartpage .quantity label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dpck-qty-box { display: inline-flex !important; align-items: center; height: 44px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.dpck-qty-box input.qty { width: 40px !important; height: 42px !important; border: 0 !important; padding: 0 !important; margin: 0 !important; text-align: center; font: inherit !important; font-size: 15px !important; background: transparent !important; box-shadow: none !important; -moz-appearance: textfield; }
.dpck-qty-box input.qty::-webkit-inner-spin-button, .dpck-qty-box input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.dpck-step-btn { width: 38px; height: 42px; border: 0 !important; background: none !important; color: var(--ink) !important; font-size: 18px !important; cursor: pointer; padding: 0 !important; box-shadow: none !important; min-height: 0 !important; line-height: 1 !important; }
.dpck-step-btn:hover { background: var(--soft) !important; }
.dpck-ci-remove { color: var(--muted) !important; display: inline-flex; width: auto !important; height: auto !important; font-size: inherit !important; background: none !important; }
.dpck-ci-remove:hover { color: var(--err) !important; background: none !important; }
.dpck-cart-actions { padding-top: 14px; }
.dpck-cart-actions .dpck-update { display: none !important; }
.dpck-cart-sum { position: sticky; top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.dpck-cart-sum .dpck-total { padding-top: 12px; border-top: 1px solid var(--line); }
.dpck-cart-sum .dpck-small { margin: 0 0 4px; }
.dpck-coupon-box summary { cursor: pointer; font-size: 13.5px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; margin: 2px 0 10px; }
.dpck-cart-sum .wc-proceed-to-checkout { padding: 0 !important; margin-top: 6px; }
.dpck-cartpage .checkout-button { width: 100% !important; margin: 0 !important; }
.dpck-cart-empty { text-align: center; padding: 60px 16px; color: var(--muted); }
.dpck-cart-empty svg { color: #c8c8c8; }
.dpck-cart-empty h1 { color: var(--ink); font-size: 26px !important; margin: 12px 0 6px !important; }
.dpck-cart-empty p { margin: 0 0 22px; }
.dpck-collaterals { margin-top: 36px; }
.dpck-collaterals .cart_totals { display: none; }

/* Barra de envío gratis */
.dpck-free-bar { margin: 0 0 6px; font-size: 13px; }
.dpck-free-bar p { margin: 0 0 7px; }
.dpck-bar { display: block; height: 6px; border-radius: 4px; background: #ececec; overflow: hidden; }
.dpck-bar i { display: block; height: 100%; background: var(--dpck-accent); border-radius: 4px; transition: width .3s; }

/* ---------- Gracias por tu compra ---------- */
body.dpck-focus .woocommerce-order { max-width: 680px; margin: 0 auto; padding: 36px 24px 48px; }
body.dpck-focus .dpck-page:has(.woocommerce-order) { background: #fff; }
.woocommerce-order .woocommerce-thankyou-order-received { font-size: 22px; font-weight: 600; margin: 0 0 18px; }
.woocommerce-order ul.order_details { list-style: none; margin: 0 0 24px !important; padding: 16px !important; border: 1px solid #dedede; border-radius: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.woocommerce-order ul.order_details li { margin: 0 !important; padding: 0 !important; border: 0 !important; float: none !important; font-size: 12px; text-transform: none; color: #707070; }
.woocommerce-order ul.order_details li strong { display: block; margin-top: 2px; font-size: 14.5px; color: #1a1a1a; }

/* ---------- Celular ---------- */
@media (max-width: 999px) {
	.dpck-grid, body.dpck-focus .dpck-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	body.dpck-focus .dpck-main > * { max-width: none; }
	body.dpck-focus .dpck-main { padding: 20px 20px 36px; }
	body.dpck-focus .dpck-side-in { padding: 20px; max-width: 640px; }
	.dpck-side { order: -1; border-left: 0; border-bottom: 1px solid var(--line); display: none; }
	.dpck.show-sum .dpck-side { display: block; }
	.dpck-side-in { position: static; max-width: 640px; margin: 0 auto; padding: 20px; }
	body:not(.dpck-focus) .dpck-side { border-radius: 0 0 12px 12px; }
	.dpck-main { padding: 20px 20px 36px; max-width: 640px; margin: 0 auto; width: 100%; }
	body:not(.dpck-focus) .dpck-main { padding: 16px 0 28px; }
	.dpck-mob-summary { display: flex !important; align-items: center; justify-content: space-between; width: 100%; padding: 16px 20px !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; background: var(--soft) !important; color: var(--dpck-accent) !important; font: inherit !important; font-size: 14px !important; cursor: pointer; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important; min-height: 0 !important; }
	.dpck-mob-label { display: inline-flex; align-items: center; gap: 8px; }
	.dpck-mob-total { color: var(--ink); font-size: 17px; font-weight: 600; }
	.dpck-mob-hide, .dpck.show-sum .dpck-mob-show { display: none; }
	.dpck.show-sum .dpck-mob-hide { display: inline; }
	.dpck-chev { transition: transform .2s; }
	.dpck.show-sum .dpck-chev { transform: rotate(180deg); }
	.dpck-actions { flex-direction: column-reverse; align-items: stretch; }
	.dpck-next { width: 100%; }
	.dpck-back { text-align: center; padding: 6px 0 !important; }
	.dpck-top-in { padding: 14px 20px; }
	.dpck-cart-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.dpck-cart-sum { position: static; }
}
@media (max-width: 640px) {
	.dpck .form-row-first, .dpck .form-row-last { width: 100% !important; margin-right: 0 !important; display: block; }
	.dpck-mode button { height: 50px !important; font-size: 14px !important; padding: 0 12px !important; gap: 8px; }
	.dpck-rv { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
	.dpck-rv > span { grid-column: 1 / -1; font-size: 12.5px; }
	.dpck-cart-cols { display: none; }
	.dpck-cart-item { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 8px 14px; padding: 18px 0; }
	.dpck-ci-thumb { grid-row: span 2; }
	.dpck-ci-thumb img { width: 80px !important; height: 80px !important; }
	.dpck-ci-qty { grid-column: 2; }
	.dpck-ci-total { grid-column: 3; grid-row: 1; }
	.dpck-cart-head h1 { font-size: 24px !important; }
}
.dpck-side .dpck-coupon { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
