/* Carrito y checkout: presentación común para shortcodes y bloques WooCommerce. */
body.woocommerce-cart,body.woocommerce-checkout {background:var(--warm-white);color:var(--black)}
body .cremia-purchase-page {background:var(--warm-white);color:var(--black);padding-block:clamp(2.5rem,5vw,5rem);font-family:var(--sans);font-size:var(--type-body);--muted:color-mix(in srgb,var(--black) 75%,var(--warm-white));--line:color-mix(in srgb,var(--gold) 30%,var(--warm-white));--wc-form-color-text:var(--black);--wc-form-color-background:var(--warm-white);--wc-form-border-color:var(--gold);--wc-form-border-radius:0;--wc-form-color-text-disabled:var(--muted);--wc-form-color-background-disabled:var(--cream)}
body .cremia-purchase-page>h1 {font-family:var(--serif);font-size:var(--type-h1);font-weight:600;line-height:1.12;margin:0 0 2rem}
body .cremia-purchase-page h2,body .cremia-purchase-page h3,body .cremia-purchase-page .wc-block-components-title {font-family:var(--serif);font-size:clamp(1.55rem,2.1vw,2rem);font-weight:600;line-height:1.2;letter-spacing:-.01em;color:var(--black)}
body .cremia-purchase-page :is(.woocommerce,.wc-block-cart,.wc-block-checkout) {color:var(--black);font-family:var(--sans);font-size:var(--type-body)}
body .cremia-purchase-page :is(label,.wc-block-components-checkbox__label,.wc-block-components-radio-control__label) {font-family:var(--sans);color:var(--black);font-size:.82rem;font-weight:400}
body .cremia-purchase-page :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),select,textarea),
body .cremia-purchase-page .select2-container .select2-selection {background:var(--warm-white);color:var(--black);font-family:var(--sans);font-size:.85rem;border:1px solid var(--gold);border-radius:0;min-height:46px;box-shadow:none}
body .cremia-purchase-page .select2-container .select2-selection__rendered {color:var(--black);line-height:44px}
body .cremia-purchase-page .select2-container .select2-selection__arrow {height:44px}
body.woocommerce-checkout .select2-dropdown {background:var(--warm-white);color:var(--black);border-color:var(--gold);font-family:var(--sans);font-size:.85rem}
body .cremia-purchase-page ::placeholder {color:var(--muted);opacity:1}
body .cremia-purchase-page :is(a.button,button.button,input.button,.checkout-button,.wc-block-components-button:not(.is-link)) {display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:.85rem 1.2rem;background:var(--black);color:var(--cream);border:1px solid var(--gold);border-radius:0;font-family:var(--sans);font-size:.8rem;font-weight:400;line-height:1.4;letter-spacing:.015em;box-shadow:none;text-decoration:none}
body .cremia-purchase-page :is(a.button,button.button,input.button,.checkout-button,.wc-block-components-button:not(.is-link)):hover {background:var(--warm-white);color:var(--black)}
body .cremia-purchase-page :is(button[name=woocommerce_checkout_place_order],.wc-block-components-checkout-place-order-button) {background:var(--gold);color:var(--black)}
body .cremia-purchase-page :is(button[name=woocommerce_checkout_place_order],.wc-block-components-checkout-place-order-button):hover {background:var(--black);color:var(--cream)}
body .cremia-purchase-page :is(a,button,input,select,textarea):focus-visible {outline:2px solid var(--gold);outline-offset:3px}
body .cremia-purchase-page table.shop_table {border:1px solid var(--line);border-radius:0;color:var(--black);font-size:.88rem}
body .cremia-purchase-page table.shop_table :is(th,td) {border-color:var(--line)}
body .cremia-purchase-page table.shop_table th {font-weight:400}
body .cremia-purchase-page :is(.cart_totals,.woocommerce-checkout-review-order,#payment,.wc-block-components-sidebar) {background:var(--cream);color:var(--black);border-radius:0}
body .cremia-purchase-page .cart_totals {padding:clamp(1rem,2.5vw,2rem)}
body .cremia-purchase-page :is(#payment .payment_box,.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner) {background:var(--warm-white);color:var(--black);border-radius:0}
body .cremia-purchase-page #payment .payment_box::before {border-bottom-color:var(--warm-white)}
body .cremia-purchase-page :is(#payment a,.woocommerce-checkout-review-order a,.cart_totals a) {color:var(--black)}
body .cremia-purchase-page .woocommerce-message a.button {color:var(--cream)}
body .cremia-purchase-page .woocommerce-message a.button:hover {color:var(--black)}
body .cremia-purchase-page :is(.woocommerce-message,.woocommerce-info) {border-top-color:var(--gold)}
body .cremia-purchase-page :is(.woocommerce-message,.woocommerce-info)::before {color:var(--gold)}
body .cremia-purchase-page :is(.product-name a,.wc-block-components-product-name) {font-family:var(--serif);font-size:1.35rem;font-weight:600;color:var(--black);line-height:1.3}
body .cremia-purchase-page :is(.amount,.wc-block-components-product-price,.wc-block-components-totals-item__value) {font-family:var(--sans);color:var(--black);font-size:.9rem}
body .cremia-purchase-page :is(.wc-block-components-product-metadata,.wc-block-components-totals-item__description,.woocommerce-privacy-policy-text) {color:var(--muted);font-size:.78rem}
body .cremia-purchase-page :is(.wc-block-components-order-summary,.wc-block-components-totals-wrapper,.wc-block-components-panel,.wc-block-cart-items,.wc-block-cart-items__row,.wc-block-checkout__payment-method,.wc-block-components-radio-control__option) {border-color:var(--line)}
body .cremia-purchase-page .wc-block-components-sidebar {padding:clamp(1rem,2.5vw,1.75rem)}
body .cremia-purchase-page .wc-block-components-radio-control__option {color:var(--black)}
body .cremia-purchase-page :is(input[type=checkbox],input[type=radio]) {accent-color:var(--black)}
body .cremia-purchase-page .wc-block-components-quantity-selector {background:var(--warm-white);color:var(--black);border-color:var(--gold);border-radius:0}
body .cremia-purchase-page .wc-block-components-quantity-selector input {min-height:40px;border:0}
body .cremia-purchase-page .wc-block-components-quantity-selector button {color:var(--black)}
body .cremia-purchase-page .wc-block-components-product-badge {background:var(--black);color:var(--gold);border:1px solid var(--gold);border-radius:2px;font-family:var(--sans);font-size:.6rem;font-weight:400;letter-spacing:.08em}
@media(max-width:700px){body .cremia-purchase-page table.shop_table{font-size:.8rem}body .cremia-purchase-page .product-name a{font-size:1.2rem}body .cremia-purchase-page :is(a.button,button.button,.wc-block-components-button:not(.is-link)){max-width:100%}body .cremia-purchase-page .wc-block-components-sidebar{padding:1rem}}
@media(prefers-reduced-motion:no-preference){body .cremia-purchase-page :is(a.button,button.button,input.button,.wc-block-components-button:not(.is-link)){transition:background-color .4s ease-in-out,color .4s ease-in-out,border-color .4s ease-in-out}}

/* Mi cuenta, acceso, recuperación, pedidos y páginas auxiliares. */
body.cremia-light-surface,body.woocommerce-account,body:has(.cremia-light-page) {background:var(--warm-white);color:var(--black)}
body .cremia-purchase-page :is(form.login,form.register,form.lost_reset_password,.woocommerce-EditAccountForm,.woocommerce-address-fields,.woocommerce-MyAccount-content,.woocommerce-order-details,.woocommerce-customer-details) {color:var(--black);background:transparent;border-color:var(--line);border-radius:0}
body .cremia-purchase-page .woocommerce-MyAccount-navigation {display:block;position:static;inset:auto;background:var(--cream);color:var(--black);padding:1.3rem;font-size:.85rem}
body .cremia-purchase-page .woocommerce-MyAccount-navigation ul {display:flex;flex-direction:column;gap:0;list-style:none;margin:0;padding:0}
body .cremia-purchase-page .woocommerce-MyAccount-navigation li a {display:block;padding:.75rem .4rem;color:var(--black);line-height:1.5}
body .cremia-purchase-page .woocommerce-MyAccount-navigation li.is-active a {color:var(--black);box-shadow:inset 2px 0 var(--gold);padding-left:.8rem}
body .cremia-purchase-page .woocommerce-MyAccount-navigation a:hover {color:var(--black);background:var(--warm-white)}
body .cremia-purchase-page :is(.woocommerce-MyAccount-content,.woocommerce-order) p {line-height:1.85}
body .cremia-purchase-page :is(.woocommerce-Address-title h3,.woocommerce-order-details__title,.woocommerce-column__title) {font-size:clamp(1.5rem,2.1vw,2rem)}
body .cremia-purchase-page .woocommerce-customer-details address {background:var(--cream);border:1px solid var(--line);border-radius:0;padding:1rem;line-height:1.8;color:var(--black)}
body .cremia-purchase-page :is(.woocommerce-order-overview,.woocommerce-thankyou-order-details) {color:var(--black)}
body .cremia-purchase-page :is(.woocommerce-orders-table,.woocommerce-table--order-details) a:not(.button) {color:var(--black)}
body .cremia-purchase-page :is(.woocommerce-form-login__rememberme,.lost_password,.woocommerce-form-register p) {font-size:.85rem}
body .cremia-purchase-page .woocommerce-form__label-for-checkbox input {min-height:0}
body .cremia-purchase-page .woocommerce-password-strength {color:var(--black);font-size:.8rem}
body .cremia-purchase-page .woocommerce-input-wrapper {color:var(--black)}
body .cremia-legal-page .cremia-legal-content {max-width:78ch;font-size:.93rem;line-height:1.9}
body .cremia-legal-page .cremia-legal-content h2 {margin:2rem 0 1rem}
body .cremia-legal-page .cremia-legal-content h3 {font-size:1.5rem;margin:1.5rem 0 .8rem}
body .cremia-legal-page .cremia-legal-content a {color:var(--black);text-decoration:underline;text-underline-offset:.2em}
@media(max-width:768px){body .cremia-purchase-page .woocommerce-MyAccount-navigation,body .cremia-purchase-page .woocommerce-MyAccount-content{float:none;width:100%}body .cremia-purchase-page .woocommerce-MyAccount-navigation{margin-bottom:2rem}body .cremia-purchase-page .woocommerce-MyAccount-content{min-width:0}body .cremia-purchase-page table.my_account_orders td{overflow-wrap:anywhere}}

body .cremia-purchase-page :is(.wc-block-components-product-metadata,.wc-block-components-totals-item__description,.woocommerce-privacy-policy-text){font-size:.85rem;line-height:1.7}
body .cremia-purchase-page .wc-block-components-product-badge {font-size:.75rem;font-weight:500;letter-spacing:.04em}

/* Alinear la fecha con las filas nativas del resumen, únicamente en móvil. */
@media(max-width:600px){
 /* WooCommerce desplaza el resumen al formulario en móvil: no depende del sidebar.
    Las filas nativas Subtotal y Total conservan 16px a cada lado. */
 body.woocommerce-checkout .cremia-purchase-page div.cremia-delivery-summary{padding-inline:16px;min-width:0;box-sizing:border-box}
 body.woocommerce-checkout .cremia-purchase-page :is(.wc-block-components-order-meta,.wc-block-components-totals-wrapper):has(>.cremia-delivery-summary){padding-inline:0}
 body.woocommerce-checkout .cremia-purchase-page div.cremia-delivery-summary{width:100%;margin-inline:0;gap:12px}
 body.woocommerce-checkout .cremia-purchase-page div.cremia-delivery-summary :is(strong,span){min-width:0;overflow-wrap:anywhere}
 body.woocommerce-checkout .cremia-purchase-page table.shop_table .cremia-delivery-summary>:is(th,td){padding-inline:12px}
}
