/* Carrito y entrega: una sola experiencia visual para visitantes y negocios. */
@media screen {
    .pv-carrito {
        --pv-cart-text: #243247;
        --pv-cart-muted: #596779;
        --pv-cart-border: #dfe6ef;
        --pv-cart-green: #0d6efd;
        max-width: 1300px;
        margin: 3rem auto;
        padding: 0 1rem;
        color: var(--pv-cart-text);
        font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
        line-height: 1.55;
    }
    #contenido-gestion .pv-carrito { margin-top: 0; }
    .pv-carrito .text-muted { color: var(--pv-cart-muted) !important; }
    .pv-carrito a:not(.btn) { color: #0b57b6; }
    .pv-carrito a:focus-visible,
    .pv-carrito button:focus-visible { outline: 3px solid #86b7fe; outline-offset: 3px; }
    .pv-carrito [hidden] { display: none !important; }
    .pv-cart-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
    .pv-cart-eyebrow { margin: 0 0 .6rem; color: #0d6efd; font-size: .68rem; font-weight: 700; letter-spacing: .13em; }
    .pv-carrito .pv-cart-heading h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -.04em; margin-bottom: .65rem; }
    .pv-cart-heading > div > .text-muted { max-width: 740px; font-size: .9rem; }
    .pv-cart-continue { display: inline-flex; align-items: center; gap: .55rem; flex-shrink: 0; padding-block: .25rem; font-size: .85rem; font-weight: 600; text-decoration: none; }
    .pv-cart-continue:hover { text-decoration: underline; text-underline-offset: .2em; }
    .pv-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; column-gap: 1.5rem; row-gap: 1.5rem; align-items: start; }
    .pv-cart-products { grid-column: 1; grid-row: 1; min-width: 0; }
    .pv-carrito #pv-pedido-form { display: contents; }
    .pv-cart-delivery { grid-column: 1; grid-row: 2; min-width: 0; }
    .pv-cart-summary { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 104px; align-self: start; overflow: hidden; margin-top: 72px; border: 1px solid #c9d1dc; border-radius: 18px; background: #fff; box-shadow: 0 8px 30px rgb(25 45 75 / 5%); }
    .pv-cart-section-heading { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
    .pv-cart-section-number { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid #cbd3de; border-radius: 12px; background: #edf4ff; color: #0d6efd; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
    .pv-carrito .pv-cart-section-heading h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
    .pv-carrito .pv-cart-section-heading p { font-size: .78rem; }
    .pv-cart-panel { margin-bottom: 1.25rem; border: 1px solid var(--pv-cart-border); border-radius: 18px; background: #fff; padding: 1.5rem; box-shadow: 0 4px 24px rgb(25 45 75 / 3%); }
    .pv-cart-products > .pv-cart-panel:last-child { margin-bottom: 0; }
    .pv-cart-store-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
    .pv-cart-section-icon { display: inline-grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid #dce1e8; border-radius: 11px; background: #f0f2f6; color: #0d6efd; font-size: 1.1rem; }
    .pv-carrito .pv-cart-store-heading h2 { flex: 1; min-width: 130px; font-size: 1.05rem; line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }
    .pv-carrito .pv-cart-store-heading > .badge { padding: .5rem .65rem; background: #f4f6f8 !important; border-color: #dbdfe5 !important; color: #556070 !important; font-size: .66rem; font-weight: 600; white-space: normal; }
    .pv-carrito .pv-cart-store-address { margin: .9rem 0 .15rem; padding-bottom: 1.2rem; border-bottom: 1px solid #eceef1; font-size: .75rem; line-height: 1.65; }
    .pv-cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding-block: 1.4rem; border-bottom: 1px solid #e7eaee; }
    .pv-cart-product-content { display: flex; gap: 1rem; min-width: 0; }
    .pv-cart-product-icon { display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 54px; border: 1px solid #dee2e8; border-radius: 13px; background: #f2f4f8; color: #788292; font-size: 1.5rem; }
    .pv-cart-product-details { min-width: 0; }
    .pv-carrito .pv-cart-product-name { display: inline-block; margin-bottom: .2rem; color: #243247 !important; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
    .pv-carrito .pv-cart-product-name:hover { color: #0d6efd !important; text-decoration: underline !important; text-underline-offset: .2em; }
    .pv-carrito .pv-cart-product-details > .small { font-size: .78rem; }
    .pv-carrito .pv-cart-product-details > small { display: block; max-width: 400px; margin-top: .65rem; font-size: .73rem; line-height: 1.65; }
    .pv-cart-qty { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .85rem; }
    .pv-carrito .pv-cart-qty input.form-control { width: 80px; min-height: 42px; padding: .5rem .65rem !important; font-size: .85rem; }
    .pv-carrito .pv-cart-qty .btn { min-height: 42px; padding: .5rem .7rem; font-size: .75rem; white-space: nowrap; }
    .pv-cart-line-total { min-width: 120px; font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .pv-cart-line-total small { display: block; margin-bottom: .3rem; color: #787e88; font-size: .63rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
    .pv-cart-store-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 1rem 0 0; font-size: .78rem; color: #596779; }
    .pv-cart-store-total strong { font-size: .95rem; color: #243247; text-align: right; font-variant-numeric: tabular-nums; }
    .pv-cart-delivery .pv-cart-section-heading { margin-bottom: 1.6rem; }
    .pv-carrito .form-label { color: #344359; font-size: .82rem; font-weight: 600; }
    .pv-carrito :is(.form-control, .form-select) { min-height: 48px; border: 1px solid #dfe6ef; border-radius: 10px; padding: .6875rem .875rem; background-color: #fcfdff; color: #243247; font-size: .88rem; line-height: 1.5; }
    .pv-carrito .form-select { padding-right: 2.25rem; }
    .pv-carrito :is(.form-control, .form-select):focus { border-color: #86b7fe; box-shadow: 0 0 0 3px rgb(13 110 253 / 12%); }
    .pv-carrito textarea.form-control { min-height: 90px; }
    .pv-carrito .form-check-input:checked { background-color: #0d6efd; border-color: #0d6efd; }
    .pv-carrito .form-check-input:focus { border-color: #86b7fe; box-shadow: 0 0 0 3px rgb(13 110 253 / 12%); }
    .pv-cart-conditions { padding: 1.2rem; border: 1px solid #dce1e9; border-radius: 12px; background: #f2f5f9; font-size: .76rem; line-height: 1.7; color: #666c75; }
    .pv-cart-conditions label { color: #344359; font-weight: 500; }
    .pv-cart-conditions label input { margin-top: .28rem; }
    .pv-cart-summary-heading { display: flex; align-items: center; gap: .75rem; padding: 1.4rem; background: #0b2e59; color: #fff; }
    .pv-cart-summary-heading > i { color: #b7c7df; font-size: 1.3rem; }
    .pv-carrito .pv-cart-summary-heading h2 { color: #fff; font-size: 1rem; font-weight: 650; letter-spacing: -.01em; }
    .pv-cart-summary-body { padding: 1.4rem; }
    .pv-cart-summary-count { color: #596779; font-size: .75rem; }
    .pv-cart-summary-stores { padding-bottom: .25rem; border-bottom: 1px solid #e1e5ea; }
    .pv-cart-summary-stores > div { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; font-size: .75rem; line-height: 1.6; }
    .pv-cart-summary-stores span { color: #596779; overflow-wrap: anywhere; }
    .pv-cart-summary-stores .pv-cart-summary-store-price { flex: 0 0 auto; color: #344359; font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
    .pv-cart-summary-total { padding-top: 1rem; }
    .pv-cart-summary-total > span { font-size: .72rem; }
    .pv-cart-summary-total > strong { display: block; margin: .4rem 0 1rem; color: #243247; font-size: 1.65rem; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
    .pv-cart-shipping { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .75rem; }
    .pv-cart-shipping span { color: #596779; }
    .pv-cart-shipping strong { color: #53637a; font-size: .7rem; font-weight: 600; }
    .pv-cart-summary-body > .small { color: #596779; font-size: .75rem; line-height: 1.7; }
    .pv-carrito .btn-primary { background: #0d6efd; border-color: #0d6efd; color: #fff; border-radius: 10px; padding: .75rem 1rem; }
    .pv-carrito .btn-primary:is(:hover, :focus) { background: #0b5ed7; border-color: #0b5ed7; }
    .pv-carrito .btn-primary:is(:active, .active) { background: #0a58ca; border-color: #0a58ca; }
    .pv-carrito .btn-primary:is(:disabled, .disabled) { background: #0d6efd; border-color: #0d6efd; }
    .pv-carrito .btn-outline-primary { border-color: #b9c2d0; color: #0b57b6; border-radius: 8px; }
    .pv-carrito .btn-outline-primary:is(:hover, :focus, :active) { background: #edf4ff; border-color: #7e91ae; color: #084298; }
    .pv-carrito .btn-outline-danger { border-color: #e2c8c3; color: #a8574c; border-radius: 8px; }
    .pv-carrito .btn-outline-danger:is(:hover, :focus, :active) { background: #fbf1ee; border-color: #be8174; color: #8f3e34; }
    .pv-carrito .pv-cart-summary-body > .btn { display: flex; justify-content: center; align-items: center; gap: .6rem; width: 100%; min-height: 48px; margin-top: 1.25rem; font-size: .85rem; }
    .pv-cart-summary-note { margin: 1rem 0 0; color: #747b85; font-size: .68rem; line-height: 1.7; text-align: center; }
    .pv-cart-clientes { max-height: 18rem; overflow: auto; border: 1px solid #dfe6ef; border-radius: 10px; margin-top: .35rem; box-shadow: 0 8px 25px rgb(25 45 75 / 7%); }
    .pv-cart-cliente { display: block; width: 100%; min-height: 48px; padding: .75rem .85rem; text-align: left; background: #fff; border: 0; border-bottom: 1px solid #e7eaee; color: #243247; font-size: .85rem; overflow-wrap: anywhere; }
    .pv-cart-cliente:last-child { border-bottom: 0; }
    .pv-cart-cliente:hover, .pv-cart-cliente[aria-selected="true"] { background: #edf4ff; }
    .pv-cart-cliente span { display: block; }
    .pv-cart-unavailable { display: flex; align-items: flex-start; gap: 1rem; border-color: #e4d7c2; background: #fffdf8; }
    .pv-cart-unavailable .pv-cart-section-icon { color: #96724d; border-color: #eadfc9; background: #faf4e8; }
    .pv-cart-unavailable p { margin-bottom: .85rem; color: #77674f; font-size: .85rem; }
    .pv-cart-empty { max-width: 800px; margin-inline: auto; }
    .pv-cart-empty-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 1.5rem; border: 1px solid #d9dfe7; border-radius: 22px; background: #edf4ff; color: #0d6efd; font-size: 2rem; }
    .pv-cart-empty p { max-width: 420px; margin: .75rem auto 1.5rem; font-size: .9rem; }
    .pv-cart-history { margin-top: 1.5rem; text-align: center; }
    .pv-cart-history a { font-size: .8rem; font-weight: 500; text-decoration: none; }
    .pv-cart-history a:hover { text-decoration: underline; text-underline-offset: .2em; }
    @media (max-width: 1100px) {
        .pv-cart-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 1rem; }
        .pv-cart-panel { padding: 1.25rem; }
        .pv-cart-line { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
        .pv-cart-line-total { padding-left: 70px; text-align: left !important; }
        .pv-cart-line-total small { display: inline; margin-right: .5rem; }
        .pv-cart-summary-heading, .pv-cart-summary-body { padding: 1.2rem; }
        .pv-cart-product-content { gap: .8rem; }
        .pv-cart-product-icon { flex-basis: 54px; }
    }
    @media (max-width: 991.98px) {
        .pv-cart-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
        .pv-cart-layout { display: block; }
        .pv-carrito #pv-pedido-form { display: block; }
        .pv-cart-products { margin-bottom: 1.5rem; }
        .pv-cart-summary { position: static; margin-top: 0; }
        .pv-cart-summary-stores > div { justify-content: space-between; }
    }
    @media (max-width: 575.98px) {
        .pv-carrito { margin-block: 1.5rem; padding-inline: .25rem; }
        .pv-cart-heading { margin-bottom: 1.5rem; }
        .pv-carrito .pv-cart-heading h1 { font-size: 2rem; }
        .pv-cart-heading > div > .text-muted { font-size: .82rem; }
        .pv-cart-heading .pv-cart-continue { font-size: .78rem; }
        .pv-cart-section-heading { gap: .7rem; }
        .pv-cart-section-number { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
        .pv-carrito .pv-cart-section-heading h2 { font-size: 1rem; }
        .pv-cart-panel { padding: 1.1rem; border-radius: 15px; }
        .pv-cart-store-heading { gap: .65rem; }
        .pv-carrito .pv-cart-store-heading h2 { font-size: .93rem; }
        .pv-cart-store-heading > .badge { margin-left: 48px; }
        .pv-cart-section-icon { width: 34px; height: 34px; flex-basis: 34px; font-size: 1rem; }
        .pv-cart-product-content { gap: .65rem; }
        .pv-cart-product-icon { width: 40px; height: 44px; flex-basis: 40px; border-radius: 10px; font-size: 1.2rem; }
        .pv-cart-line-total { padding-left: 50px; font-size: .85rem; }
        .pv-carrito .pv-cart-product-name { font-size: .86rem; }
        .pv-carrito .pv-cart-qty { gap: .4rem; }
        .pv-carrito .pv-cart-qty input.form-control { width: 67px; }
        .pv-carrito .pv-cart-qty .btn { min-height: 44px; padding-inline: .6rem; font-size: .71rem; }
        .pv-cart-store-total { flex-direction: column; gap: .35rem; }
        .pv-cart-store-total strong { text-align: left; }
        .pv-cart-delivery .pv-cart-section-heading { align-items: flex-start; }
        .pv-cart-conditions { padding: 1rem; }
        .pv-cart-summary-total > strong { font-size: 1.8rem; }
        .pv-cart-summary-stores > div { flex-wrap: wrap; gap: .25rem .75rem; }
        .pv-cart-unavailable { gap: .75rem; }
    }
}
