.pedido-frontend-wrapper {
    max-width: 90%;
    margin: 0 auto;
    padding: 2.3rem 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 1.8rem;
    line-height: 1.5;
    width: 450px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    --color-dark-gray: #767676;
    --box-shadow-mid: 0rem 0rem 0.6rem color-mix(in srgb, var(--color-primary), white 75%);
}

.pedido-frontend-wrapper .wimpli-box {
    background: #ffffff70;
    border: 1px solid rgb(from var(--color-primary) r g b / 15%);
    border-radius: 2.3rem;
    padding: 2.3rem;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgb(from var(--color-primary) r g b / 8%);
    transition: box-shadow 0.3s ease;
}

.pedido-frontend-wrapper .wimpli-box:hover {
    box-shadow: 0 4px 16px rgb(from var(--color-primary) r g b / 12%);
}

.pedido-frontend-wrapper .wimpli-box-header {
    padding-bottom: 1.2rem;
    margin-bottom: 0;
    border-bottom: 0px solid rgb(from var(--color-primary) r g b / 15%);
}

.pedido-frontend-wrapper .wimpli-box-title {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary, #333);
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.pedido-frontend-wrapper .wimpli-box-title-icon {
    font-size: 1.8rem;
    display: none;
}

.pedido-frontend-wrapper .pedido-order-card {
    background: #ffffff;
    border: 0px solid color(srgb 0.85 0.85 0.85 / 0.42);
    border-radius: 2.4rem;
    padding: 0;
    margin-bottom: 0;
    overflow: visible;
    box-shadow: var(--box-shadow-small);
    text-align: left;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

/* Card header (cloned from card-header.css, scoped to frontend) */
.pedido-frontend-wrapper .pedido-order-card .card-header {
    padding: 2rem 2rem 0;
    flex-shrink: 0;
    display: flex;
    gap: 0;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 0;
    position: relative;
}

.pedido-frontend-wrapper .pedido-order-card .card-header-row--meta {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0;
}

.pedido-frontend-wrapper .pedido-order-card .card-header-row--sucursal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0 0 0.7rem;
}

.pedido-frontend-wrapper .pedido-order-card .card-header-row--sucursal .card-header-sucursal {
    max-width: 100%;
    font-size: 1.6rem;
    border-radius: 0.7rem;
    gap: 1rem;
    min-height: 3.4rem;
    padding: 0.5rem 1rem;
}

.pedido-frontend-wrapper .pedido-order-card .card-header-row--sucursal .card-header-sucursal .wimpli-branch-icon {
    width: 1.8rem;
    height: 1.8rem;
}

.pedido-frontend-wrapper .pedido-order-card .card-header-row--sucursal .card-header-sucursal .wimpli-branch-value {
    font-size: 1.8rem;
}

.pedido-frontend-wrapper .pedido-order-card .card-header-row--client {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.pedido-frontend-wrapper .pedido-order-card .card-header-row--timer {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.pedido-frontend-wrapper .pedido-order-card .card-header .card-nombre {
    font-size: 2.9rem;
    font-weight: 900;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 2.9rem;
    flex: 1;
    min-width: 0;
    color: black;
    text-shadow: 0px 0px 5px #ffffff;
    padding: 0;
}

.pedido-frontend-wrapper .pedido-order-card .card-header-row--meta .order-servicio,
.pedido-frontend-wrapper .pedido-order-card .card-header-row--meta .card-header-order-id,
.pedido-frontend-wrapper .pedido-order-card .card-header-row--meta .card-header-rappi-logo {
    flex-shrink: 0;
    align-self: flex-start;
    margin: 0;
}

.pedido-frontend-wrapper .pedido-order-card .card-header-row--meta .card-header-rappi-logo {
    width: auto;
    height: 2.2rem;
    border-radius: 0.35rem;
    object-fit: contain;
    display: block;
    align-self: center;
}

.pedido-frontend-wrapper .pedido-order-card .card-header-row--meta .card-header-order-id {
    text-transform: uppercase;
}

/* Order servicio + order id (cloned from order-servicio.css) */
.pedido-frontend-wrapper .pedido-order-card {
    --pf-scale: 0.85;
    --order-component-radius-small: 1rem;
    --order-component-radius-normal: 0.6rem;
    --order-component-radius-big: 1.4rem;
    --order-component-pad-y-small: 0.4rem;
    --order-component-pad-x-small: 0.7rem;
    --order-component-pad-y-normal: 0.6rem;
    --order-component-pad-x-normal: 1rem;
    --order-component-pad-y-big: 0.8rem;
    --order-component-pad-x-big: 1.3rem;
    --order-component-gap-small: 0.4rem;
    --order-component-gap-normal: 0.5rem;
    --order-component-gap-big: 0.7rem;
    --order-component-height-small: 3rem;
    --order-component-height-normal: 4.2rem;
    --order-component-height-big: 5.6rem;
    --order-component-label-small: 1.5rem;
    --order-component-label-normal: 2rem;
    --order-component-label-big: 3.5rem;
    --order-component-icon-small: 3.1rem;
    --order-component-icon-normal: 3.5rem;
    --order-component-icon-big: 3.9rem;
}

.pedido-frontend-wrapper .pedido-order-card .order-servicio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--order-component-gap-normal);
    box-sizing: border-box;
    border: 0;
    background: transparent;
    border-radius: 2rem;
    padding: 0;
    min-height: var(--order-component-height-normal);
    max-width: 100%;
    min-width: 0;
}

.pedido-frontend-wrapper .pedido-order-card .order-servicio__icon {
    width: var(--order-component-icon-normal);
    height: var(--order-component-icon-normal);
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.pedido-frontend-wrapper .pedido-order-card .order-servicio__label {
    font-size: var(--order-component-label-normal);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #000;
    white-space: nowrap;
}

.pedido-frontend-wrapper .pedido-order-card .order-servicio--label .order-servicio__icon {
    display: none;
}

.pedido-frontend-wrapper .pedido-order-card .order-servicio--servicio-w_mostrador,
.pedido-frontend-wrapper .pedido-order-card .wimpli-order-id.pedido-order-card--servicio-w_mostrador {
    --color-primary: var(--color-brown);
}

.pedido-frontend-wrapper .pedido-order-card .order-servicio--servicio-w_shipping,
.pedido-frontend-wrapper .pedido-order-card .wimpli-order-id.pedido-order-card--servicio-w_shipping {
    --color-primary: var(--color-blue);
}

.pedido-frontend-wrapper .pedido-order-card .order-servicio--servicio-w_take_away,
.pedido-frontend-wrapper .pedido-order-card .wimpli-order-id.pedido-order-card--servicio-w_take_away {
    --color-primary: var(--color-pink);
}

.pedido-frontend-wrapper .pedido-order-card .order-servicio--servicio-w_mesa,
.pedido-frontend-wrapper .pedido-order-card .wimpli-order-id.pedido-order-card--servicio-w_mesa {
    --color-primary: var(--color-orange);
}

.pedido-frontend-wrapper .pedido-order-card .order-servicio--servicio-w_venta_directa,
.pedido-frontend-wrapper .pedido-order-card .wimpli-order-id.pedido-order-card--servicio-w_venta_directa {
    --color-primary: var(--color-wimpli);
}

.pedido-frontend-wrapper .pedido-order-card .wimpli-order-id {
    font-size: 2.9rem;
    font-weight: 900;
    box-shadow: var(--box-shadow-small) !important;
    padding: 0.5rem 1rem;
    background: white !important;
    display: inline-flex;
    align-items: center;
    gap: var(--order-component-gap-normal);
}

.pedido-frontend-wrapper .pedido-order-card .wimpli-order-id-servicio-icon {
    width: var(--order-component-icon-normal);
    height: var(--order-component-icon-normal);
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.pedido-frontend-wrapper .pedido-order-card .wimpli-order-id .wimpli-order-id-value,
.pedido-frontend-wrapper .pedido-order-card .wimpli-order-id .wimpli-order-id-copy {
    min-height: var(--order-component-height-normal);
    padding: 0;
    box-sizing: border-box;
    color: #000;
}

.pedido-frontend-wrapper .pedido-order-card .wimpli-order-id.small {
    border-radius: var(--order-component-radius-small);
    font-size: var(--order-component-label-small);
    gap: var(--order-component-gap-small);
}

.pedido-frontend-wrapper .pedido-order-card .wimpli-order-id.small .wimpli-order-id-servicio-icon,
.pedido-frontend-wrapper .pedido-order-card .wimpli-order-id.small .wimpli-order-id-value,
.pedido-frontend-wrapper .pedido-order-card .wimpli-order-id.small .wimpli-order-id-copy {
    min-height: var(--order-component-height-small);
}

.pedido-frontend-wrapper .pedido-order-card .wimpli-order-id .wimpli-order-id-copy {
    display: none;
}

/* Order timer (aligned with order-timer.css stacked layout) */
.pedido-frontend-wrapper .pedido-order-card .order-timer {
    position: relative;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.pedido-frontend-wrapper .pedido-order-card .order-timer:not(.order-timer--plain):not(.order-timer--badge) {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pedido-frontend-wrapper .pedido-order-card .order-timer__top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.pedido-frontend-wrapper .pedido-order-card .order-timer__heading {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 0.5rem;
}

.pedido-frontend-wrapper .pedido-order-card .order-timer__track {
    position: relative;
    width: 100%;
    background: #e5e5e5;
    height: 0.6rem;
    border-radius: 849px;
    overflow: hidden;
}

.pedido-frontend-wrapper .pedido-order-card .order-timer__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    border-radius: 849px;
    background: color-mix(in srgb, color-mix(in srgb, var(--color-green), white 30%), #393939 10%) !important;
    transition: width 0.65s linear, background 0.35s ease;
    height: 100%;
}

.pedido-frontend-wrapper .pedido-order-card .order-timer__status {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
    min-width: 0;
}

.pedido-frontend-wrapper .pedido-order-card .order-timer__icon.dashicons {
    font-size: 2.7rem;
    width: auto;
    height: auto;
    line-height: normal;
    flex-shrink: 0;
    margin-left: auto;
    color: #aeaeae;
}

.pedido-frontend-wrapper .pedido-order-card .order-timer__text {
    flex: 0 1 auto;
    min-width: 0;
    font-weight: 500;
    font-size: 1.8rem;
    font-variant-numeric: tabular-nums;
    background: transparent !important;
    padding: 0 !important;
    color: #000;
    line-height: 1.8rem;
}

.pedido-frontend-wrapper .pedido-order-card .order-timer__label,
.pedido-frontend-wrapper .pedido-order-card .order-timer__date,
.pedido-frontend-wrapper .pedido-order-card .order-timer__status-label {
    font-weight: 400;
    flex-shrink: 0;
    color: gray;
    font-size: 1.8rem;
    line-height: 1.8rem;
}

.pedido-frontend-wrapper .pedido-order-card .order-timer__date {
    flex: 1 1 auto;
    min-width: 0;
    color: #1d2327;
    font-weight: 500;
}

.pedido-frontend-wrapper .pedido-order-card .order-timer--overdue .order-timer__fill {
    width: 100% !important;
    background: color-mix(in srgb, var(--color-red), #ffffff 30%) !important;
}

.pedido-frontend-wrapper .pedido-order-card .order-timer--off {
    display: none !important;
}

.pedido-frontend-wrapper .pedido-order-card .card-header-row--timer .order-timer {
    width: 100%;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos {
    padding: 2rem;
    min-height: 0;
    margin: 0 !important;
}

/* Reset storefront cart panel positioning â€” order_cart_* is not the menu cart */
.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart_products {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    min-height: 0;
    flex: none !important;
    z-index: auto !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 0 1rem !important;
    overflow: visible !important;
    text-align: left !important;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart-items {
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    min-height: 0;
    flex: none !important;
    margin: 0 0 1rem !important;
    padding: 0 !important;
    border-radius: 2rem;
    border: none;
    display: flex !important;
    flex-flow: column nowrap !important;
    gap: 1rem;
    overflow: visible !important;
    align-content: stretch !important;
    align-items: stretch !important;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart-item {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 1.5rem !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    border: 1px solid color(srgb 0.85 0.85 0.85 / 0.42) !important;
    border-radius: 1rem !important;
    box-shadow: var(--box-shadow-small);
    background: white;
    box-sizing: border-box;
    font-size: 1.8rem;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart_product_container {
    display: flex;
    flex-flow: column;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart-product {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-rows: auto !important;
    align-items: start !important;
    justify-content: stretch !important;
    gap: 0.5rem 1rem !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .product_details {
    display: flex !important;
    flex-shrink: 0;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .product_image {
    width: 5.4rem;
    height: 5.4rem;
    border-radius: 7px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 7px;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .item_settings {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
    margin-left: 0 !important;
    flex: 0 0 auto !important;
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    max-width: 100%;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .mid {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #000 !important;
    border: 1px solid rgba(0, 0, 0, 0.21);
    padding: 0.3rem 0.8rem !important;
    color: #fff !important;
    font-size: 1.6rem;
    line-height: 1;
    border-radius: 1rem !important;
    flex-shrink: 0;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .mid p {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.8rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    color: #fff !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: center;
    pointer-events: none;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .product_unit_price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .product_unit_price small {
    display: none !important;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .product_unit_price .currency,
.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .product_unit_price span {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #000 !important;
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    text-align: right !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .product_name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    width: 100%;
    text-align: left;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart-item-product-title {
    font-weight: 900;
    font-size: 1.8rem;
    line-height: 1.2;
    color: #000;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .product_name i {
    font-size: 1.3rem;
    opacity: 0.75;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart-item-actions,
.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .resumen-add-coupons,
.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .decr-item,
.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .incr-item,
.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .delete_container,
.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .edit_container {
    display: none !important;
}

.pedido-frontend-wrapper .pedido-order-card .card-header-row--timer {
    display: none !important;
}

.pedido-frontend-wrapper .pedido-order-productos .resumen-elaboracion-min-box {
    display: none !important;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-card-header-status {
    padding: 0.5rem 2rem 1rem;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-card-header-status .wimpli-order-current-status {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-card-header-details {
    padding: 1rem 2rem 1.5rem;
    border-bottom: 0px solid color(srgb 0.85 0.85 0.85 / 0.42);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-card-header-block-title {
    margin: 0 0 0.7rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-primary, #333);
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-card-header-details .order-customer-info,
.pedido-frontend-wrapper .pedido-order-card .pedido-order-card-header-details .order-delivery-info {
    margin: 0;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-card-header-details .order-info-label {
    font-size: 1.2rem;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-card-header-details .order-info-value {
    font-size: 1.5rem;
}

.pedido-frontend-wrapper .pedido-order-card .order-customer-info--icons .order-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pedido-frontend-wrapper .pedido-order-card .order-info-item--icon-contact {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
}

.pedido-frontend-wrapper .pedido-order-card .order-info-label--icon-only {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

.pedido-frontend-wrapper .pedido-order-card .order-info-icon {
    display: block;
    width: 1.8rem;
    height: 1.8rem;
    object-fit: contain;
}

.pedido-frontend-wrapper .pedido-order-card .order-info-icon--whatsapp {
    background-color: #25d366;
    -webkit-mask-image: url("../images/icon_whatsapp.svg");
    mask-image: url("../images/icon_whatsapp.svg");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.pedido-frontend-wrapper .pedido-order-card .order-info-icon--email {
    font-size: 1.8rem;
    width: 1.8rem;
    height: 1.8rem;
    line-height: 1.8rem;
}

.pedido-frontend-wrapper .pedido-status-box {
    margin-bottom: 0;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .resumen-pago-blocks {
    padding: 0;
    margin-top: 1rem;
}

.pedido-frontend-wrapper .pedido-pay-action-box .wimpli-box-body {
    padding-top: 0;
}

.pedido-frontend-wrapper .pedido-order-card .pos-resumen-block-title {
    margin: 0 0 0.7rem;
    font-size: 1.7rem;
    font-weight: 900;
    color: rgb(29, 35, 39);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.pedido-frontend-wrapper .pedido-order-card .pos-resumen-block-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pedido-frontend-wrapper .pedido-order-card .resumen-pago-row--emphasis .resumen-pago-value {
    font-weight: 800;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .pos-pago-detalle-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    flex: 1 1 0%;
    min-width: 0;
    padding-right: 0.5rem;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .pos-pago-detalle-metodo {
    font-weight: 500;
    line-height: 1.3;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .pos-pago-detalle-fecha {
    font-size: 1.1rem;
    color: rgb(80, 87, 94);
    font-weight: 400;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .pos-pago-detalle-monto {
    flex-shrink: 0;
    text-align: right;
    font-weight: 600;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .pos-pago-detalles-rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.pedido-frontend-wrapper .pedido-order-card .pos-resumen-payment-status-mount {
    margin-top: 1rem;
}

/* Payment status (cloned from order-payment-status.css) */
.pedido-frontend-wrapper .pedido-order-productos .order-payment-status {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.7rem;
    --order-payment-status-accent: var(--color-red);
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status--pending {
    --order-payment-status-accent: var(--color-red);
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status--partial {
    --order-payment-status-accent: var(--color-blue);
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status--review {
    --order-payment-status-accent: var(--color-yellow);
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status--paid {
    --order-payment-status-accent: var(--color-green);
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status__label {
    font-weight: 800;
    font-size: 1.9rem;
    color: #000;
    line-height: 1.2;
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status__track {
    position: relative;
    width: 100%;
    height: 0.7rem;
    background: color-mix(in srgb, var(--color-red), #ffffff 30%) !important;
    border-radius: 849px;
    overflow: hidden;
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status__fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    border-radius: 849px;
    background: color-mix(in srgb, color-mix(in srgb, var(--color-blue), white 30%), #393939 10%);
    transition: width 0.45s ease, background 0.35s ease;
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status--partial .order-payment-status__fill {
    background: color-mix(in srgb, color-mix(in srgb, var(--color-blue), white 30%), #393939 10%);
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status--review .order-payment-status__fill {
    background: color-mix(in srgb, color-mix(in srgb, var(--color-yellow), white 30%), #393939 0%) !important;
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status--paid .order-payment-status__fill {
    background: color-mix(in srgb, var(--color-green), #ffffff 15%);
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status__amounts {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.7rem;
    min-height: 1.6rem;
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status--partial .order-payment-status__amounts,
.pedido-frontend-wrapper .pedido-order-productos .order-payment-status--review .order-payment-status__amounts {
    justify-content: space-between;
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status__amount {
    font-weight: 800;
    font-size: 1.7rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status__amount--paid {
    margin-right: auto;
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status__amount--pending,
.pedido-frontend-wrapper .pedido-order-productos .order-payment-status__amount--state {
    margin-left: auto;
}

.pedido-frontend-wrapper .pedido-order-productos .order-payment-status--off {
    display: none !important;
}

.pedido-frontend-wrapper .pedido-order-card .pos-resumen-block--abonos,
.pedido-frontend-wrapper .pedido-order-historial-title {
    display: none !important;
}

/* Product options inside open order items */
.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart_product_container .product_Settings {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart_product_container .product_varieties,
.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart_product_container .product_options {
    font-size: 1.7rem;
    line-height: 2.3rem;
    color: #555;
    padding: 0;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart_product_container .product_varieties_group,
.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart_product_container .product_options_group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart_product_container .variety-group-title,
.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart_product_container .options-group-title {
    font-weight: 700;
    color: #333;
    font-size: 1.6rem;
    line-height: 1.8rem;
    display: block;
    margin-bottom: 0.2rem;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart_product_container .selection-list {
    list-style: none;
    margin: 0.2rem 0 0;
    padding: 0;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart_product_container .selection-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart_product_container .selection-list .selection-qty {
    flex-shrink: 0;
    font-weight: 600;
    min-width: 1.8rem;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .order_cart_product_container .selection-list .selection-label {
    margin: 0;
    font-weight: normal;
    background: white;
    box-shadow: var(--box-shadow-mid) !important;
}

.pedido-frontend-wrapper .pedido-order-card .pedido-order-productos .no-productos {
    padding: 2rem;
    text-align: center;
    color: #999;
}

.pedido-frontend-wrapper .pedido-pay-action-box .wimpli-box-body {
    padding-top: 0;
}

.pedido-frontend-wrapper .order-current-status-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem 0;
}

.pedido-frontend-wrapper .order-current-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.3rem;
    font-size: 1.8rem;
    font-weight: 600;
    border-radius: 5.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pedido-frontend-wrapper .order-current-status--recibido {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.pedido-frontend-wrapper .order-current-status--confirmado {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

.pedido-frontend-wrapper .order-current-status--en_produccion {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.pedido-frontend-wrapper .order-current-status--listo {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.pedido-frontend-wrapper .order-current-status--en_camino {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
}

.pedido-frontend-wrapper .order-current-status--entregado,
.pedido-frontend-wrapper .order-current-status--cerrado {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.pedido-frontend-wrapper .order-current-status--reclamo {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.pedido-frontend-wrapper .order-current-status--cancelado {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.order-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.order-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.order-info-item-row {
    display: flex;
    gap: 1.2rem;
}

.order-info-item-row .order-info-item {
    flex: 1;
}

.order-info-item--full {
    width: 100%;
}

.order-info-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.order-info-value {
    font-size: 1.8rem;
    font-weight: 500;
    color: #333;
    word-break: break-word;
}

.order-info-value a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.order-info-value a:hover {
    color: rgb(from var(--color-primary) r g b / 80%);
    text-decoration: underline;
}

.order-resumen--frontend {

}

.order-resumen--frontend .order-resumen-products {
    margin-bottom: 1.7rem;
}

.pedido-frontend-wrapper .order-cart_products {
    width: 100%;
}

.pedido-frontend-wrapper .order-cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pedido-frontend-wrapper .order-cart-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 1.8rem;
    box-shadow: 0 2px 8px rgb(from var(--color-primary) r g b / 8%);
    padding: 2.3rem;
}

.pedido-frontend-wrapper .order-resumen--frontend .order_cart_product_container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pedido-frontend-wrapper .order-resumen--frontend .order_cart-product {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.6rem 1.2rem;
    align-items: start;
    margin-bottom: 0.6rem;
}

.pedido-frontend-wrapper .order-resumen--frontend .product_details {
    grid-row: 1 / 3;
    grid-column: 1;
}

.pedido-frontend-wrapper .order-resumen--frontend .product_image {
    width: 9.2rem;
    height: 9.2rem;
    border-radius: 1.2rem;
    overflow: hidden;
    background: #f5f5f5;
}

.pedido-frontend-wrapper .order-resumen--frontend .order_cart-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.9rem;
}

.pedido-frontend-wrapper .order-resumen--frontend .order_cart-product .product_quantity,
.pedido-frontend-wrapper .order-resumen--frontend .order-cart-item .product_quantity {
    grid-row: 1;
    grid-column: 3;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.3rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pedido-frontend-wrapper .order-resumen--frontend .order_cart-product .product_quantity p,
.pedido-frontend-wrapper .order-resumen--frontend .order-cart-item .product_quantity p {
    font-weight: 700 !important;
    font-size: 2.8rem !important;
    min-width: 5.8rem !important;
    height: 4.6rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--color-primary, #837bd7) !important;
    color: white !important;
    border-radius: 0.9rem !important;
    padding: 0 0.7rem !important;
    margin: 0 !important;
}

.pedido-frontend-wrapper .bulk-unit-label {
    font-size: 1.3rem !important;
    color: #666 !important;
    margin-left: 0.2rem !important;
}

.pedido-frontend-wrapper .order-resumen--frontend .order_cart-product .product_unit_price,
.pedido-frontend-wrapper .order-resumen--frontend .order-cart-item .product_unit_price {
    grid-row: 2;
    grid-column: 3;
    display: block !important;
    font-weight: 700 !important;
    font-size: 2.1rem !important;
    text-align: right !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    opacity: 1 !important;
    white-space: nowrap !important;
}

.pedido-frontend-wrapper .order-resumen--frontend .product_name {
    padding-top: 0.6rem;
}

.pedido-frontend-wrapper .order_cart-item-product-title {

}

.pedido-frontend-wrapper .product_name i {

}

.pedido-frontend-wrapper .product_name .discount {

}

.pedido-frontend-wrapper .product_name .discount span {
    color: white;
}

.pedido-frontend-wrapper .product_Settings {
    margin-top: 0;
    padding-top: 0;
    width: 100%;
}

.pedido-frontend-wrapper .product_clarification {
    margin-top: 1.2rem;
    padding: 1.2rem;
    background: #fff3cd;
    border-radius: 0.9rem;
    border-left: 4px solid #ffc107;
    font-size: 1.6rem;
    color: #856404;
    white-space: pre-wrap;
}

.pedido-frontend-wrapper .product_clarification small {
    font-weight: 700;
    display: block;
    margin-bottom: 0.25em;
}

.pedido-frontend-wrapper .product_varieties,
.pedido-frontend-wrapper .product_options,
.pedido-frontend-wrapper .product_pasos_wrap {

}

.pedido-frontend-wrapper .product_options_group, .pedido-frontend-wrapper .product_configura_group, .pedido-frontend-wrapper .product_personalizar_group, .pedido-frontend-wrapper .product_adicionales_group, .pedido-frontend-wrapper .product_salsas_group, .pedido-frontend-wrapper .configura-adicionales, .pedido-frontend-wrapper .configura-personalizar {

}

.pedido-frontend-wrapper .product_configura_group .configura-adicionales,
.pedido-frontend-wrapper .product_configura_group .configura-personalizar {

}

.pedido-frontend-wrapper .variety-group-title,
.pedido-frontend-wrapper .options-group-title {
    display: block;
    font-weight: 600;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.6rem;
    letter-spacing: 0;
}

.pedido-frontend-wrapper .product_configura_group_title {
    display: block;
    font-weight: 600;
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.pedido-frontend-wrapper .selection-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pedido-frontend-wrapper .selection-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pedido-frontend-wrapper .selection-qty {

}

.pedido-frontend-wrapper .selection-label {

    background: white;

}

.pedido-frontend-wrapper .selection-label.important {
    background: #c0392b;
    color: white;
    border-color: #c0392b;
    font-weight: 600;
}

.pedido-frontend-wrapper .configura-personalizar {

}

.pedido-frontend-wrapper .configura-personalizar .variety-group-title {

}

.pedido-frontend-wrapper .order-item-note {
    margin-top: 1.2rem;
    padding: 0.9rem 1.2rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.9rem;
    font-size: 1.5rem;
    color: #856404;
}

.pedido-frontend-wrapper .order-item-note strong {
    text-transform: uppercase;
}

.order-resumen-products--legacy {
    padding: 1.2rem;
    background: #f8f9fa;
    border-radius: 1.2rem;
}

.pedido-frontend-wrapper .resumen-total {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border-top: 1px solid rgb(from var(--color-primary) r g b / 15%);
    padding-top: 1.4rem;
    margin-top: 1.2rem;
}

.pedido-frontend-wrapper .resumen-pago-section {
    margin-top: 0;
    padding-top: 0;
    gap: 0.6rem;
    display: flex;
    flex-direction: column;
}

.pedido-frontend-wrapper .resumen-pago-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    font-size: 1.6rem;
}

.pedido-frontend-wrapper .resumen-pago-label {
    font-weight: 500;
    color: rgb(102, 102, 102);
}

.pedido-frontend-wrapper .resumen-pago-value {
    font-weight: 600;
    color: rgb(51, 51, 51);
    text-align: right;
}

.pedido-frontend-wrapper .resumen-pago-row.resumen-pago-discount {
    color: rgb(76, 175, 80);
}

.pedido-frontend-wrapper .resumen-pago-row.resumen-pago-discount .resumen-pago-value {
    color: rgb(76, 175, 80);
    font-weight: 600;
}

.pedido-frontend-wrapper .resumen-pago-row.resumen-pago-surcharge {
    color: rgb(244, 67, 54);
}

.pedido-frontend-wrapper .resumen-pago-row.resumen-pago-surcharge .resumen-pago-value {
    color: rgb(244, 67, 54);
    font-weight: 600;
}

.pedido-frontend-wrapper .resumen-pago-row.resumen-pago-coupon.coupon {
    width: 100%;
    min-height: 0;
    border-radius: 1px;
    overflow: hidden;
    margin: 0.6rem 0;
    filter: drop-shadow(rgba(0, 0, 0, 0.2) 0px 1px 2px);
    display: flex;
    align-items: stretch;
    position: relative;
    background: transparent;
    padding: 0;
    border: none;
}

.pedido-frontend-wrapper .resumen-pago-row.resumen-pago-coupon.coupon::before,
.pedido-frontend-wrapper .resumen-pago-row.resumen-pago-coupon.coupon::after {
    content: "";
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: -1;
}

.pedido-frontend-wrapper .resumen-pago-row.resumen-pago-coupon.coupon::before {
    left: 0;
    background-image: radial-gradient(circle at 0px 50%, transparent 0.8rem, var(--color-primary, #9333ea) 0.8rem);
}

.pedido-frontend-wrapper .resumen-pago-row.resumen-pago-coupon.coupon::after {
    right: 0;
    background-image: radial-gradient(circle at 100% 50%, transparent 0.8rem, var(--color-primary, #9333ea) 0.8rem);
}

.pedido-frontend-wrapper .resumen-pago-row.resumen-pago-coupon.coupon > div {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.pedido-frontend-wrapper .resumen-pago-row.resumen-pago-coupon.coupon .coupon-left {
    width: 1.2rem;
    border-right: 0;
}

.pedido-frontend-wrapper .resumen-pago-row.resumen-pago-coupon.coupon .coupon-left div {
    transform: rotate(-90deg);
    white-space: nowrap;
    font-weight: bold;
    font-size: 1.4rem;
    color: #fff;
    display: none;
}

.pedido-frontend-wrapper .resumen-pago-row.resumen-pago-coupon.coupon .coupon-center {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: space-around;
    padding: 0.6rem 1.2rem;
}

.pedido-frontend-wrapper .resumen-pago-row.resumen-pago-coupon.coupon .coupon-center h3 {
    font-size: 1.8rem;
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-family: "Courier New", monospace;
}

.pedido-frontend-wrapper .resumen-pago-row.resumen-pago-coupon.coupon .coupon-center .coupon-discount-amount {
    font-size: 1.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.pedido-frontend-wrapper .resumen-total-quantity-amount-container {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgb(from var(--color-primary) r g b / 20%);
}

.pedido-frontend-wrapper .resumen-total-quantity {
    font-size: 14px;
    font-weight: 600;
    color: rgb(102, 102, 102);
}

.pedido-frontend-wrapper .resumen-total-amount {
    font-size: 2.3rem;
    font-weight: 700;
    text-align: right;

    margin-left: auto;
}

.order-payment-status {
    text-align: center;
    margin-bottom: 1.7rem;
}

.order-payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.8rem;
    border-radius: 3.5rem;
    font-size: 1.7rem;
    font-weight: 600;
}

.order-payment-badge--paid {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.order-payment-badge--pending {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: white;
}

.order-payment-badge--review {
    background: linear-gradient(135deg, #ff8b00 0%, #ffa940 100%);
    color: white;
}

.order-payment-badge-icon {
    font-size: 1.8rem;
}

.order-payment-action {
    text-align: center;
    margin-bottom: 1.7rem;
}

.mercadopago-payment-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    background: linear-gradient(135deg, #00a650 0%, #00d4aa 100%);
    color: white;
    border: none;
    padding: 1.4rem 2.8rem;
    border-radius: 3.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 166, 80, 0.3);
    transition: all 0.3s ease;
}

.mercadopago-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 166, 80, 0.4);
}

.mercadopago-payment-btn:active {
    transform: translateY(0);
}

.mercadopago-payment-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.mercadopago-payment-btn-icon {
    font-size: 2.3rem;
}

.order-payment-hint {
    margin: 0.9rem 0 0 0;
    font-size: 1.5rem;
    color: #666;
}

.order-payment-info {
    background: rgb(from var(--color-primary) r g b / 5%);
    border-radius: 1.2rem;
    padding: 1.2rem;
}

.order-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.6rem;
    border-bottom: 1px solid rgb(from var(--color-primary) r g b / 10%);
}

.order-payment-row:last-child {
    border-bottom: none;
}

.order-payment-label {
    font-size: 1.6rem;
    color: #666;
    font-weight: 500;
}

.order-payment-value {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
}

.order-payment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
    margin-top: 1.2rem;
}

.order-payment-table th,
.order-payment-table td {
    padding: 0.7rem;
    text-align: left;
    border-bottom: 1px solid rgb(from var(--color-primary) r g b / 10%);
}

.order-payment-table th {
    font-weight: 600;
    color: #666;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.pedido-frontend-wrapper .pedido-chat-section {
    width: 100%;
    margin-top: 1.7rem;
}

.pedido-frontend-wrapper .pedido-chat-trigger {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 1.6rem 1.8rem;
    border-radius: 1.4rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, rgb(from var(--color-primary) r g b / 85%) 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.pedido-frontend-wrapper .pedido-chat-section:has(#pedido-chat-panel.is-open) .pedido-chat-trigger {
    display: none;
}

.pedido-frontend-wrapper .pedido-chat-trigger-icon.dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2.5rem;
    line-height: 1;
    color: inherit;
    flex-shrink: 0;
}

.pedido-frontend-wrapper .pedido-chat-trigger-label {
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.pedido-frontend-wrapper .pedido-chat-trigger:hover {
    transform: 0 0.6rem 2.8rem color-mix(in srgb, var(--color-primary), #2e2e2e47 78%);
}

.pedido-frontend-wrapper .pedido-chat-trigger:active {
    transform: translateY(0);
}

.pedido-frontend-wrapper .pedido-chat-trigger .chat-unread-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    background: var(--color-red, #e74c3c);
    color: white;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
}

.pedido-frontend-wrapper .pedido-chat-panel {
    position: static;
    width: 100%;
    max-width: 100%;
    max-height: none;
    background: white;
    border-radius: 1.4rem;
    box-shadow: var(--box-shadow-small);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: var(--border);
}

.pedido-frontend-wrapper .pedido-chat-panel.is-open {
    display: flex;
    max-height: min(60vh, 480px);
    min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
    .pedido-frontend-wrapper .pedido-chat-trigger {
        transition-duration: 0.01ms !important;
    }
}

.pedido-frontend-wrapper .pedido-chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.7rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, rgb(from var(--color-primary) r g b / 85%) 100%);
    color: white;
    flex-shrink: 0;
}

.pedido-chat-panel-title {
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
}

.pedido-chat-panel-title .pedido-chat-panel-title-icon.dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
    color: inherit;
}

.pedido-chat-panel-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    color: white;
    font-size: 3.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}

.pedido-chat-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pedido-frontend-wrapper .pedido-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 1.7rem;
    background: #f8f9fa;
    max-height: 360px
}

.pedido-frontend-wrapper .pedido-chat-input-wrap {
    display: flex;
    gap: 0.9rem;
    padding: 1.2rem;
    border-top: 1px solid rgb(from var(--color-primary) r g b / 15%);
    background: #f1f1f1;
    flex-shrink: 0;
}

.pedido-chat-input {
    flex: 1;
    padding: 1.2rem 1.4rem !important;
    border: 1px solid #ddd;
    border-radius: 1.2rem !important;
    font-size: 1.7rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-shadow: rgb(0 0 0 / 9%) 1px 2px 3px inset, rgba(0, 0, 0, 0.2) -1px -1px 3px inset;
}

.pedido-chat-input:focus {
    border-color: var(--color-primary);
}

.pedido-chat-send-btn {
    position: relative;
    width: 5.2rem;
    height: 5.2rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pedido-chat-send-btn .pedido-chat-send-btn-icon.dashicons {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2.5rem;
    line-height: 1;
    color: inherit;
}

.pedido-chat-send-btn:not(.is-sending) .pedido-chat-send-btn-icon--busy.dashicons {
    display: none;
}

.pedido-chat-send-btn.is-sending .pedido-chat-send-btn-icon--idle.dashicons {
    display: none;
}

.pedido-chat-send-btn.is-sending .pedido-chat-send-btn-icon--busy.dashicons {
    display: inline-flex;
    animation: pedido-chat-send-spin 0.85s linear infinite;
}

@keyframes pedido-chat-send-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.pedido-chat-send-btn:hover {
    background: rgb(from var(--color-primary) r g b / 85%);
    transform: scale(1.05);
}

.pedido-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-msg {
    margin-bottom: 1.4rem;
    display: flex;
    flex-direction: column;
}

.chat-msg.from-customer {
    align-items: flex-end;
}

.chat-msg.from-admin {
    align-items: flex-start;
}

.msg-sender {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    padding: 0 0.9rem;
    color: #666;
}

.msg-bubble {
    max-width: 85%;
    padding: 1.2rem 1.6rem;
    border-radius: 1.8rem;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 1.7rem;
}

.chat-msg.from-customer .msg-bubble {
    background: var(--color-primary);
    color: white;
    border-bottom-right-radius: 0.5rem;
}

.chat-msg.from-admin .msg-bubble {
    background: #e4e6eb;
    color: #050505;
    border-bottom-left-radius: 0.5rem;
}

.msg-time {
    font-size: 1.3rem;
    margin-top: 0.3rem;
    padding: 0 0.9rem;
    color: #999;
}

.no-messages,
.loading-messages,
.chat-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 1.6rem;
    text-align: center;
}

.chat-error {
    color: var(--color-red, #e74c3c);
}
.product_pasos_wrap {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pedido-confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.pedido-confirmation-content {
    padding: 4.6rem 3.5rem;
    border-radius: 2.3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    width: 400px;
}

.pedido-confirmation-content--success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.pedido-confirmation-content--error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.pedido-confirmation-icon {
    font-size: 6.9rem;
    margin-bottom: 1.7rem;
}

.pedido-confirmation-title {
    margin: 0 0 1.2rem 0;
    font-size: 2.8rem;
    font-weight: 700;
}

.pedido-confirmation-text {
    margin: 0 0 2.3rem 0;
    font-size: 1.8rem;
    opacity: 0.95;
}

.pedido-confirmation-btn {
    background: white;
    border: none;
    padding: 1.4rem 3.5rem;
    border-radius: 3.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.pedido-confirmation-content--success .pedido-confirmation-btn {
    color: #28a745;
}

.pedido-confirmation-content--error .pedido-confirmation-btn {
    color: #e74c3c;
}

.pedido-confirmation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.pedido-status-notification {
    position: fixed;
    top: 2.3rem;
    right: 2.3rem;
    background: var(--color-green, #27ae60);
    color: white;
    padding: 1.4rem 2.3rem;
    border-radius: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-size: 1.6rem;
    font-weight: 600;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
