/*
Theme Name: QRFood
Description: Theme created by Leandro Berg (fullstack development - http://virtuemasters.com.br).
Version: 1.29
Author: VIRTUEMASTERS
Author URI: https://virtuemasters.com.br
*/

/* GENERAL */

:root {
    --default: #E50914;
    --hover: #95060D;
    --lines: #C4C4C4;
    --gray: #777777;
    --gray2: #D9D9D9;
    --dark-gray: #1f2937;
    --green: #0B8209;
    --orange: #FF9900;
    --light-red: #fff8f8;
}

body {
    font-family: Roboto;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 40px;
}

body.home {
    padding-top: calc(var(--header-height, 147px) + 20px);
    padding-bottom: max(120px, 45vh);
}

section {
    overflow: hidden;
    position: relative;
    padding: 80px 0;
}

img {
    max-width: 100%;
    height: auto;
}

iframe,
video,
audio {
    max-width: 100%;
}

.cover {
    background-position: center;
    background-size: cover;
}

.min-height-100vh {
    min-height: 100vh;
}

a {
    cursor: pointer;
}

a.permalink {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 100;
}

strong {
    font-weight: 700;
}

p {
    padding-bottom: 15px;
}

span.dashicons {
    font-size: 2em;
    line-height: 1em;
    width: 32px;
    height: 32px;
}

.wp-block {
    max-width: 100%;
}

.checkbox-group div {
    margin-bottom: 5px !important;
}

.p10 {
    padding: 10px 0;
}

/* HEADING */

h1 {
    font-size: 1.5em;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid var(--lines);
}

h2 {
    color: var(--gray);
    font-weight: 900;
    text-transform: uppercase;
    padding-bottom: 20px;
    scroll-margin-top: calc(var(--header-height, 147px) - 20px);
}

.qrfood-first-category-target {
    scroll-margin-top: calc(var(--header-height, 147px) - 20px);
    grid-column: 1 / -1;
    height: 0;
    margin: 0;
    padding: 0;
    visibility: hidden;
}

h3 {
    font-family: Raleway;
    font-size: 20px;
    line-height: 1.4;
    text-transform: capitalize;
}

h4 {
    color: var(--dark-gray);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

/* BUTTON */

.wp-block-button {
    border-width: 1px;
}

.wp-block-button .wp-block-button__link {
    font: 16px/32px "Viga";
    border-radius: 0;
    padding: 0 15px;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    border-width: 1px;
}

/* COLORS */

.has-white-color {
    color: white !important;
}

.has-white-background-color {
    background-color: white;
}

.has-white-color {
    color: white !important;
}

.has-white-background-color {
    background-color: white;
}

.has-black-color {
    color: black !important;
}

.has-black-background-color {
    background-color: black;
}

/* LINKS */

a {
    color: var(--default);
    text-decoration: none;
    display: inline-block;
}

a:hover,
a:active,
a:focus {
    text-decoration: none;
    color: var(--hover);
}

.current-menu-item a,
.current-page-ancestor a {
    font-weight: 700;
    color: var(--hover);
}

/* FORM */

select {
    border: none;
    background: var(--gray2);
    padding: 5px;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 1em;
    font-family: Roboto;
}

textarea {
    background: var(--gray2);
    border: none;
    border-radius: 5px;
    height: 80px;
    padding: 15px;
    font-size: 1em;
    font-family: Roboto;
}

input[type=text],
input[type=email],
input[type=date],
select {
    font-size: 14px;
    background: var(--gray2);
    border: none;
    border-radius: 8px;
    padding: 14px 12px;
    font-family: Roboto;
    width: calc(100% - 24px);
}

select {
    width: 100%;
    padding: 12px 5px;
}

input:invalid,
select:invalid,
textarea:invalid {
    border: 1px solid red;
}

/* HEADER */

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: white;
    z-index: 20;
}

.qrfood-header-hero {
    position: relative;
    width: 100%;
    background: var(--gray);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.qrfood-header-banner-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.qrfood-header-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.qrfood-header-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.qrfood-header-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.qrfood-header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.qrfood-header-logo-wrap {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qrfood-header-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qrfood-header-logo-wrap.is-placeholder {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.qrfood-header-logo-wrap.is-placeholder .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.qrfood-header-brand-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

h1.qrfood-header-store-name {
    margin: 0;
    padding: 0;
    border: none;
    font-family: Raleway;
    font-size: 22px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
    text-align: left;
}

.qrfood-table-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    color: var(--dark-gray);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

.qrfood-table-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--default);
}

header .button-orders {
    position: relative;
    top: auto;
    right: auto;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, background 0.2s;
}

header .button-orders:hover {
    transform: scale(1.05);
    background: #ffffff;
}

header .button-orders .dashicons-bell {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--dark-gray);
}

header .button-orders .count {
    background: var(--default);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    position: absolute;
    top: -2px;
    right: -2px;
    left: auto;
    bottom: auto;
    color: white;
}

/* Orders History Bottom-Sheet Modal */
.qrfood-orders-sheet-modal .qrfood-sheet-dialog {
    max-height: 85vh;
}

.qrfood-orders-body {
    padding: 12px 18px 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.qrfood-orders-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qrfood-order-card {
    background: #ffffff;
    border: 1px solid var(--lines);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qrfood-order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 8px;
}

.qrfood-order-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.qrfood-order-title-wrap .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.qrfood-order-title-wrap .dashicons-yes-alt {
    color: var(--green);
}

.qrfood-order-title-wrap .dashicons-clock {
    color: var(--orange);
}

.qrfood-order-title-wrap .dashicons-dismiss {
    color: var(--default);
}

.qrfood-order-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    line-height: 1.3;
}

.qrfood-order-badge.status-completed {
    background: #e6f7ec;
    color: #047857;
}

.qrfood-order-badge.status-processing {
    background: #fff8e6;
    color: #b45309;
}

.qrfood-order-badge.status-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.qrfood-order-date {
    font-size: 14px;
    color: var(--gray);
    white-space: nowrap;
}

.qrfood-order-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qrfood-order-items-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: #444;
}

.qrfood-order-items-list .order-item-name {
    font-weight: 500;
    text-transform: capitalize;
}

.qrfood-order-items-list .order-item-price {
    font-weight: 600;
    color: #222;
}

.qrfood-order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed #e2e4e7;
    padding-top: 8px;
    margin-top: 2px;
}

.qrfood-order-view-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--default);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(180, 31, 44, 0.08);
    transition: background 0.15s;
}

.qrfood-order-view-link:hover {
    background: rgba(180, 31, 44, 0.16);
    color: var(--hover);
}

.qrfood-order-view-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.qrfood-order-card-total {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qrfood-order-card-total strong {
    color: var(--default);
}


header nav {
    background: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid var(--lines);
}

header nav ul {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 0 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
}

header nav a {
    color: var(--gray);
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

header nav a:hover {
    color: var(--gray);
}

header nav a.active {
    color: var(--default);
}

/* PRODUCT LISTING */

.products .product {
    display: grid;
    grid-template-columns: 100px 1fr;
    border-bottom: 1px solid var(--lines);
    padding-bottom: 25px;
    margin-bottom: 25px;
    column-gap: 20px;
    row-gap: 10px;
    cursor: pointer;
}

.products .product figure {
    width: 100px;
    min-width: 100px;
    height: 100px;
    grid-row: 1;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.products .product .product-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
}

.products .product .product-info .excerpt {
    color: var(--gray);
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
    text-transform: lowercase;
}

.products .product .product-info .excerpt::first-letter {
    text-transform: uppercase;
}

.products .product .product-info .price {
    color: var(--default);
    font-weight: 700;
    line-height: 24px;
    font-size: 1.1em;
    margin: 4px 0 0 0;
}

.products .product figure:before {
    content: "\f187";
    font-family: Dashicons;
    font-size: 48px;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray);
    color: white;
}

.products .product figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

.products .woocommerce-product-details__short-description {
    grid-column: 1 / span 2;
}

.products .product form {
    grid-column: 1 / span 2;
    display: grid;
    grid-template-columns: 100px auto;
    column-gap: 20px;
    row-gap: 10px;
}

.products .product table {
    grid-column: 1 / span 2;
}

.products .product form.variations_form {
    margin-top: 5px;
}

.products .product form.variations_form tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.products .product form.variations_form tr {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.products .product form:not(.variations_form),
.products .product .single_variation_wrap {
    grid-column: 1 / span 2;
    display: grid;
    grid-template-columns: 100px auto 45px;
    column-gap: 20px;
    border: 1px solid var(--lines);
    border-radius: 5px;
    padding: 10px 0;
    margin-top: 10px;
}

.products .product .single_variation_wrap .woocommerce-variation-add-to-cart {
    order: 1;
}

.products .product .single_variation_wrap .woocommerce-variation {
    order: 2;
    display: block !important;
}

.products .product .single_variation_wrap button {
    order: 3;
}

.products .product .quantity-wrapper {
    display: flex;
    padding: 0px 15px;
    border-right: 1px solid var(--lines);
}

.products .product .quantity-wrapper > span {
    font-size: 1.6em;
}

.products .product .qty {
    border: none;
    width: 100%;
    padding: 0;
    color: #000;
    font-size: 1em;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}

.products .product p {
    padding: 0;
}

.products .product .price {
    color: var(--default);
    font-weight: 700;
}

.products .product button {
    border: none;
    background: black;
    color: white;
    margin: -11px -1px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* CHECKOUT */

/* Central container for checkout, thankyou and cancellation screens */
body.woocommerce-checkout main > .woocommerce,
body.woocommerce-order-received main > .woocommerce {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.woocommerce-checkout {
    color: var(--gray);
}

.woocommerce-checkout h2 {
    text-align: center;
    color: var(--gray);
    margin-bottom: 10px;
}

.checkout .shop_table {
    color: var(--gray);
    width: 100%;
    margin-top: 5px;
    margin-bottom: 20px;
}

.checkout .shop_table .cart_item {
    border-bottom: 1px solid var(--lines);
}

.checkout .shop_table .cart_item td {
    padding: 5px 0;
    vertical-align: bottom;
}

.checkout .shop_table .cart_item td .item,
.woocommerce-checkout-review-order-table td.product-name .item {
    display: block;
    font-weight: bold;
    text-transform: capitalize;
}

.checkout .shop_table .cart_item td .description,
.woocommerce-checkout-review-order-table td.product-name .description {
    text-transform: capitalize;
}

.checkout .shop_table .product-total,
.checkout .shop_table .order-total {
    text-align: right;
}

.checkout .shop_table .order-total .amount {
    margin-top: 5px;
    display: block;
    color: var(--default);
}

.checkout .notes textarea {
    display: block;
    width: calc(100% - 30px);
    margin-top: 5px;
}

.checkout .wc-credit-card-form input {
    display: block;
    margin-top: 5px;
}

/* Checkout 2 Columns Row (Nome & Celular, Bairro & Número) */
.checkout-fields-row.checkout-row-2col {
    display: flex;
    gap: 12px;
    width: 100%;
}

.checkout-fields-row.checkout-row-2col .form-row {
    flex: 1 1 50%;
    width: 50%;
    margin-bottom: 0;
}

.checkout-fields-row.checkout-row-2col .form-row .woocommerce-input-wrapper {
    margin-bottom: 20px;
}

.checkout-fields-row.checkout-row-2col .form-row select,
.checkout-fields-row.checkout-row-2col .form-row input[type=text] {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    margin: 0;
}

.checkout-fields-row.checkout-row-2col .form-row select {
    padding: 12px 10px;
}

.qrfood-address-fields label {
    display: none !important;
}

/* Credit Card Form Compact Layout */
.checkout .payment_box.payment_method_credit_card {
    padding: 16px 0 0;
}

.checkout .payment_box.payment_method_credit_card label {
    display: none !important;
}

.checkout .payment_box.payment_method_credit_card .form-row {
    margin-bottom: 12px;
    padding: 0;
    box-sizing: border-box;
}

.checkout .payment_box.payment_method_credit_card .form-row input,
.checkout .payment_box.payment_method_credit_card .form-row select {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0 12px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: var(--dark-gray);
    margin: 0;
}

.checkout .payment_box.payment_method_credit_card .form-row input:focus,
.checkout .payment_box.payment_method_credit_card .form-row select:focus {
    border-color: var(--default);
    outline: none;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.15);
}

/* Birthdate Field Wrapper & Overlay for Date Placeholder support on iOS and Desktop */
.qrfood-birthdate-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.qrfood-birthdate-fake {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0 12px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: var(--dark-gray);
    margin: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    display: block;
}

.qrfood-birthdate-wrapper.is-focused .qrfood-birthdate-fake {
    border-color: var(--default);
    outline: none;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.15);
}

input[type="date"].qrfood-birthdate-real {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    -webkit-appearance: none;
    appearance: none;
}

.checkout .payment_box.payment_method_credit_card .form-row-50,
.checkout .payment_box.payment_method_credit_card #customerCPF_field,
.checkout .payment_box.payment_method_credit_card #customerPhone_field,
.checkout .payment_box.payment_method_credit_card #customerBirth_field,
.checkout .payment_box.payment_method_credit_card #customerPostcode_field,
.checkout .payment_box.payment_method_credit_card #customerNumber_field,
.checkout .payment_box.payment_method_credit_card #customerState_field,
.checkout .payment_box.payment_method_credit_card #customerCity_field,
.checkout .payment_box.payment_method_credit_card #customerNeighborhood_field {
    width: calc(50% - 6px) !important;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 0px;
}

.checkout .payment_box.payment_method_credit_card .form-row-50.form-row-first,
.checkout .payment_box.payment_method_credit_card #customerCPF_field,
.checkout .payment_box.payment_method_credit_card #customerBirth_field,
.checkout .payment_box.payment_method_credit_card #customerNumber_field,
.checkout .payment_box.payment_method_credit_card #customerCity_field {
    margin-right: 12px;
    clear: left;
}

.checkout .payment_box.payment_method_credit_card .form-row-33,
.checkout .payment_box.payment_method_credit_card #cvv_field,
.checkout .payment_box.payment_method_credit_card #mesVencimento_field,
.checkout .payment_box.payment_method_credit_card #anoVencimento_field {
    width: calc(33.333% - 8px) !important;
    display: inline-block;
    vertical-align: top;
    margin-bottom: 12px;
}

.checkout .payment_box.payment_method_credit_card .form-row-33.form-row-first,
.checkout .payment_box.payment_method_credit_card #cvv_field,
.checkout .payment_box.payment_method_credit_card .form-row-33.form-row-middle,
.checkout .payment_box.payment_method_credit_card #mesVencimento_field {
    margin-right: 12px;
}

.checkout .payment_box.payment_method_credit_card #cvv_field {
    clear: left;
}

.checkout .payment_box.payment_method_credit_card #cvv_field span,
.checkout .payment_box.payment_method_credit_card #mesVencimento_field span,
.checkout .payment_box.payment_method_credit_card #anoVencimento_field span {
    margin-bottom: 0;
}

.checkout .payment_box.payment_method_credit_card .form-row-wide,
.checkout .payment_box.payment_method_credit_card #customerName_field,
.checkout .payment_box.payment_method_credit_card #customerEmail_field,
.checkout .payment_box.payment_method_credit_card #customerAddress_field,
.checkout .payment_box.payment_method_credit_card #numeroCartao_field {
    width: 100% !important;
    clear: both;
}

.checkout .wc-payment-form:after {
    content: '* Necessário para processamento do PIX';
    display: block;
    font-size: .9em;
    margin-top: 10px;
}

/* Modern Switch Slider for Radio Buttons */
.checkout input[type="radio"].input-radio,
.checkout .qrfood-switch-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 24px;
    background-color: var(--gray2);
    border-radius: 24px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.2s ease;
    vertical-align: middle;
    margin: 0 12px 0 0;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.checkout input[type="radio"].input-radio::after,
.checkout .qrfood-switch-radio::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.checkout input[type="radio"].input-radio:checked,
.checkout .qrfood-switch-radio:checked {
    background-color: var(--default);
    border-color: var(--default);
}

.checkout input[type="radio"].input-radio:checked::after,
.checkout .qrfood-switch-radio:checked::after {
    transform: translateX(20px);
}

.checkout input[type="radio"].input-radio:focus-visible,
.checkout .qrfood-switch-radio:focus-visible {
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

/* Payment Methods Card List */
.checkout ul.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.checkout .wc_payment_method {
    margin: 10px 0;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.checkout .wc_payment_method:hover {
    border-color: #d1d5db;
}

.checkout .wc_payment_method:has(> input[type="radio"]:checked) {
    border-color: var(--default);
    background: var(--light-red);
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.08);
}

.checkout .wc_payment_method > label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0;
    flex-grow: 1;
    gap: 8px;
}

.checkout .wc_payment_method .payment_box {
    width: 100%;
    margin-top: 12px;
    padding-top: 0px;
    border-top: 1px dashed rgba(229, 9, 20, 0.25);
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.checkout ul.wc_payment_methods:has(> li:only-child) > li > input[type=radio],
.checkout ul.wc_payment_methods:has(> li:only-child) > li > label {
    display: none;
}

/* Delivery & Consumption Mode Selector (Counter Pickup vs Delivery / Dine-in vs Takeaway) */
.qrfood-delivery-mode-wrapper {
    margin-bottom: 24px;
}

.qrfood-customer-info-title,
.qrfood-delivery-mode-title,
.qrfood-consumption-mode-title,
.qrfood-payment-method-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

#payment:has(ul.wc_payment_methods:has(> li:only-child)) .qrfood-payment-method-title {
    display: none;
}

/* Delivery Mode Options List - Stacked 1 Column */
.qrfood-delivery-mode-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.qrfood-delivery-mode-card {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.qrfood-delivery-mode-card:hover {
    border-color: #d1d5db;
}

.qrfood-pickup-card:has(input[name="_delivery_method"][value="pickup"]:checked),
.qrfood-pickup-card.is-selected,
.qrfood-delivery-card:has(input[name="_delivery_method"][value="delivery"]:checked),
.qrfood-delivery-card.is-selected {
    border-color: var(--default);
    background: var(--light-red);
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.08);
}

.qrfood-pickup-card:not(.is-selected):not(:has(input[name="_delivery_method"][value="pickup"]:checked)),
.qrfood-delivery-card:not(.is-selected):not(:has(input[name="_delivery_method"][value="delivery"]:checked)) {
    border-color: #e5e7eb;
    background: #ffffff;
    box-shadow: none;
}

.qrfood-delivery-mode-header {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
    width: 100%;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-gray, #111827);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.qrfood-delivery-mode-header .mode-name,
.qrfood-consumption-mode-card .mode-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-gray, #111827);
    line-height: 1.2;
}

/* Address Fields Nested inside Delivery Card (Standardized with Credit Card Box Layout) */
.qrfood-delivery-mode-card #qrfood-address-fields,
.qrfood-delivery-card #qrfood-address-fields {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 10px;
    padding-top: 20px;
    border-top: 1px dashed rgba(229, 9, 20, 0.25);
    box-sizing: border-box;
    display: block;
    transition: opacity 0.25s ease, max-height 0.3s ease;
}

.qrfood-delivery-mode-card #qrfood-address-fields.is-pickup,
.qrfood-delivery-card #qrfood-address-fields.is-pickup {
    display: none !important;
}

/* Consistent 20px vertical spacing between field rows */
.qrfood-delivery-mode-card #qrfood-address-fields > .form-row,
.qrfood-delivery-card #qrfood-address-fields > .form-row,
.qrfood-delivery-mode-card #qrfood-address-fields > .checkout-fields-row,
.qrfood-delivery-card #qrfood-address-fields > .checkout-fields-row {
    margin-bottom: 20px !important;
    padding: 0;
    box-sizing: border-box;
}

.qrfood-delivery-mode-card #qrfood-address-fields > .form-row:last-child,
.qrfood-delivery-card #qrfood-address-fields > .form-row:last-of-type,
.qrfood-delivery-card #qrfood-address-fields > .checkout-fields-row:last-child {
    margin-bottom: 0 !important;
}

/* Reset internal margins inside the 2-column row in address fields */
.qrfood-delivery-mode-card #qrfood-address-fields .checkout-fields-row .form-row,
.qrfood-delivery-card #qrfood-address-fields .checkout-fields-row .form-row {
    margin-bottom: 0 !important;
    padding: 0;
}

.qrfood-delivery-mode-card #qrfood-address-fields .checkout-fields-row .woocommerce-input-wrapper,
.qrfood-delivery-card #qrfood-address-fields .checkout-fields-row .woocommerce-input-wrapper {
    margin-bottom: 0 !important;
}

.qrfood-delivery-mode-card #qrfood-address-fields .woocommerce-input-wrapper,
.qrfood-delivery-card #qrfood-address-fields .woocommerce-input-wrapper {
    margin-bottom: 0 !important;
    display: block;
}

.qrfood-delivery-mode-card #qrfood-address-fields input,
.qrfood-delivery-mode-card #qrfood-address-fields select,
.qrfood-delivery-card #qrfood-address-fields input,
.qrfood-delivery-card #qrfood-address-fields select {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0 12px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: var(--dark-gray);
    margin: 0 !important;
}

.qrfood-delivery-mode-card #qrfood-address-fields select,
.qrfood-delivery-card #qrfood-address-fields select {
    padding: 0 10px;
    line-height: 44px;
}

.qrfood-delivery-mode-card #qrfood-address-fields input:focus,
.qrfood-delivery-mode-card #qrfood-address-fields select:focus,
.qrfood-delivery-card #qrfood-address-fields input:focus,
.qrfood-delivery-card #qrfood-address-fields select:focus {
    border-color: var(--default);
    outline: none;
}

/* Consumption Mode Nested inside Pickup Card */
.qrfood-delivery-mode-card #qrfood-consumption-mode-wrapper,
.qrfood-pickup-card #qrfood-consumption-mode-wrapper {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(229, 9, 20, 0.25);
    margin-bottom: 10px;
    box-sizing: border-box;
}

.qrfood-delivery-mode-card #qrfood-consumption-mode-wrapper.is-hidden,
.qrfood-pickup-card #qrfood-consumption-mode-wrapper.is-hidden {
    display: none !important;
}

.qrfood-delivery-mode-card #qrfood-consumption-mode-wrapper .qrfood-consumption-mode-title,
.qrfood-pickup-card #qrfood-consumption-mode-wrapper .qrfood-consumption-mode-title {
    font-size: 14px;
    margin-bottom: 8px;
}

.qrfood-consumption-mode-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

@media (max-width: 480px) {
    .qrfood-consumption-mode-options {
        grid-template-columns: 1fr;
    }
}

.qrfood-consumption-mode-card {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    gap: 8px;
    box-sizing: border-box;
}

.qrfood-consumption-mode-card:hover {
    border-color: #d1d5db;
}

.qrfood-consumption-mode-card:has(input[type="radio"]:checked) {
    border-color: var(--default);
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(229, 9, 20, 0.12);
}


.checkout .form-row {
    padding: 0;
}

.checkout .form-row label {
    display: inline-block;
    margin-bottom: 5px;
}

.checkout .woocommerce-input-wrapper {
    display: block;
    margin-bottom: 20px;
}

.checkout [data-brand] {
    position: relative;
}

.checkout [data-brand]:after {
    content: '';
    position: absolute;
    right: 10px;
    top: calc(50% - 15px);
    width: 40px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.checkout [data-brand=mastercard]:after {
    background-image: url(images/logo-master.webp);
}

.checkout [data-brand=visa]:after {
    background-image: url(images/logo-visa.webp);
}

.checkout [data-brand=amex]:after {
    background-image: url(images/logo-amex.webp);
}

.checkout [data-brand=hipercard]:after {
    background-image: url(images/logo-hiper.webp);
}

.checkout button,
.woocommerce-order-received a.copyPix,
.order-completed .buttons a:not(.back) {
    border: none;
    text-align: center;
    background: var(--default);
    color: white;
    padding: 20px;
    border-radius: 5px;
    font-weight: 700;
    width: 100%;
    font-size: 1em;
}

.loading,
.checkout button[disabled] {
    opacity: .5;
    pointer-events: none;
}

.checkout .back,
.woocommerce-order-received .back {
    display: block;
    text-align: center;
    width: 100%;
    font-weight: 700;
    padding: 20px 0;
    color: var(--default);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.checkout .back:hover,
.woocommerce-order-received .back:hover {
    color: var(--hover);
    text-decoration: none;
}

.checkout .back.is-submitting,
.woocommerce-order-received .back.is-submitting {
    pointer-events: none;
    opacity: 0.6;
}

.checkout .place-order {
    padding-top: 40px;
    
}

/* Minimum order unmet - hide checkout fields and show only back button */
.min-order-unmet .woocommerce-additional-fields,
.min-order-unmet #payment .wc_payment_methods,
.min-order-unmet #payment #place_order,
.min-order-unmet #payment .place-order noscript,
#payment.min-order-unmet .wc_payment_methods,
#payment.min-order-unmet #place_order,
#payment.min-order-unmet .place-order noscript {
    display: none !important;
}

.min-order-unmet #payment,
#payment.min-order-unmet {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.min-order-unmet #payment .place-order,
#payment.min-order-unmet .place-order {
    padding-top: 10px !important;
}

.min-order-unmet .checkout .back,
.min-order-unmet .back,
#payment.min-order-unmet .back {
    display: block;
    text-align: center;
    background: var(--default);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 5px;
    font-weight: 700;
    width: 100%;
    font-size: 1em;
    text-decoration: none;
    box-sizing: border-box;
    transition: opacity 0.2s ease;
}

.min-order-unmet .checkout .back:hover,
.min-order-unmet .back:hover,
#payment.min-order-unmet .back:hover {
    opacity: 0.9;
    color: #ffffff;
}

.checkout .woocommerce-NoticeGroup {
    color: var(--default);
    text-align: center;
    margin-bottom: 20px;
}

/* PAY FOR ORDER (MOBILE HAND-OFF) */
.pay-order-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 0 40px;
}

.pay-order-header-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.pay-order-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pay-order-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(229, 9, 20, 0.08);
    color: var(--default);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 6px 14px;
    border-radius: 999px;
}

.pay-order-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.pay-order-channel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 999px;
}

.pay-order-channel .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.pay-order-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    text-align: left;
}

.pay-order-subtitle {
    font-size: 0.92rem;
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.45;
    padding-bottom: 0;
}

.pay-order-total-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fafb;
    border-radius: 8px;
    padding: 14px 18px;
    border: 1px solid #f3f4f6;
}

.pay-order-total-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
}

.pay-order-total-amount {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--default);
}

.pay-order-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 20px 0 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid #f3f4f6;
}

.pay-order-table-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.pay-order-table-card .shop_table {
    width: 100%;
    border: none;
    background: transparent;
    margin: 0;
    padding: 0;
    border-collapse: collapse;
}

.pay-order-table-card .shop_table tbody tr.cart_item {
    border-bottom: 1px solid #f3f4f6;
}

.pay-order-table-card .shop_table tbody tr.cart_item td {
    padding: 12px 4px;
    vertical-align: middle;
}

.pay-order-table-card .shop_table tbody tr.cart_item td.product-name .item {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--dark-gray);
    line-height: 1.35;
    text-transform: capitalize;
}

.pay-order-table-card .shop_table tbody tr.cart_item td.product-name .description {
    font-size: 0.85rem;
    color: #6b7280;
    display: block;
    margin-top: 2px;
    text-transform: capitalize;
}

.pay-order-table-card .shop_table tbody tr.cart_item td.product-total {
    text-align: right;
    white-space: nowrap;
    font-size: 0.98rem;
    font-weight: 600;
    color: #111827;
}

.pay-order-table-card .shop_table .product-quantity {
    color: #6b7280;
    font-size: 0.88rem;
    font-weight: 500;
    margin-right: 4px;
}

.pay-order-table-card .shop_table tfoot tr.order-total th {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    padding: 14px 4px 4px;
    text-align: left;
}

.pay-order-table-card .shop_table tfoot tr.order-total td {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    padding: 14px 4px 4px;
    text-align: right;
}

.woocommerce-pay-order-form .payment_box {
    display: block !important;
}

.button-pay-order {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 1.1rem !important;
    padding: 18px !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.button-pay-order:hover {
    background: var(--hover) !important;
}

.button-pay-order:active {
    transform: scale(0.99);
}

.button-pay-order .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
}

.pay-order-cancel-wrapper {
    margin-top: 14px;
    text-align: center;
}

/* Delivery Checkout Notices */
.qrfood-checkout-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.4;
}

.qrfood-min-order-alert {
    background-color: #fef2f2;
    border: 1px solid #f87171;
    color: #991b1b;
}

.qrfood-free-shipping-alert {
    background-color: #f0fdf4;
    border: 1px solid #4ade80;
    color: #166534;
}

.qrfood-free-shipping-info {
    padding: 9px 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    background-color: #f0f9ff;
    border: 1px solid #7dd3fc;
    color: #0369a1;
}

.free-shipping {
    color: var(--green, #0B8209);
    font-weight: bold;
}

/* ORDER RECEIVED */

.woocommerce-order-received {
    text-align: center;
}

.woocommerce-order-received .woocommerce-order img:not(.terminal-qr-image):not(.qrfood-global-loading-logo):not([class*="qrfood-global-loading"]),
.woocommerce-order-received img:not(.terminal-qr-image):not(.qrfood-global-loading-logo):not([class*="qrfood-global-loading"]) {
    width: 50%;
    max-width: 200px;
    margin: 40px auto;
    display: block;
}

.woocommerce-order-received .terminal-qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 252px;
    height: 252px;
    margin: 24px auto;
    padding: 16px;
    background: #ffffff;
    border: 2px solid #eaeaea;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.woocommerce-order-received .terminal-qr-box .terminal-qr-image,
.woocommerce-order-received img.terminal-qr-image {
    width: 220px !important;
    height: 220px !important;
    max-width: 220px !important;
    max-height: 220px !important;
    min-width: 220px !important;
    min-height: 220px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 6px;
}

.woocommerce-order-received .status {
    border: 1px dashed var(--lines);
    border-radius: 5px;
    padding: 5px 15px;
    display: inline-block;
    margin-top: 20px;
    transition: .3s;
    animation: blinking 1s linear infinite;
}

.woocommerce-order-received a.copyPix,
.order-completed .buttons a:not(.back) {
    width: calc(100% - 40px);
    margin-top: 40px;
    transition: .3s;
    display: inline-block;
    box-sizing: border-box;
    text-decoration: none;
}


.woocommerce-order-received .pix-timer-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fdf2f2;
    color: var(--default);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(214, 54, 56, 0.2);
    font-size: 1em;
    font-weight: 500;
    margin: 15px auto;
}

.woocommerce-order-received .pix-timer-box strong {
    color: var(--default);
    font-weight: 700;
}

.woocommerce-order-received .pix-timer-box .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

/* ORDER COMPLETED */

.order-completed > .dashicons {
    color: var(--green);
    font-size: 8em;
    width: auto;
    height: auto;
}

.order-expired > .dashicons {
    color: var(--default, #d63638);
}

.order-completed .order-id {
    font-size: 15px;
    color: #64748b;
    margin: 16px 0 4px 0;
    font-weight: 500;
}

.order-completed .order-confirmed-title {
    margin: 4px 0 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.order-completed .order-confirmed-title strong {
    display: block;
    font-size: 2.2em;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 4px;
    color: #0f172a;
}

.order-completed .order-day-id {
    display: block;
    font-size: 2.2em;
    font-weight: 800;
    line-height: 1.1;
    margin: 4px 0 16px 0;
    color: #0f172a;
}

.order-completed h4 {
    margin-top: 20px;
}

.order-completed hr {
    margin-bottom: 40px;
    margin-top: 20px;
    opacity: .5;
}

.order-completed .status {
    color: var(--orange);
    margin-bottom: 20px;
    border-color: var(--orange);
}

.order-completed .status.status-completed {
    color: var(--green);
    border-color: var(--green);
}

.order-completed .status .dashicons {
    color: var(--orange);
    font-size: 18px;
    width: auto;
    height: auto;
    vertical-align: -4px;
    margin-right: 5px;
}

.order-completed .status.status-completed .dashicons {
    color: var(--green);
}

/* Customer Order Status Timeline */
.order-timeline-container {
    width: 100%;
    max-width: 480px;
    margin: 24px auto 16px;
    padding: 0 8px;
    box-sizing: border-box;
}

.order-timeline-track {
    position: relative;
    padding: 10px 0 20px;
}

.order-timeline-line {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 1;
}

.order-timeline-progress {
    height: 100%;
    background: var(--default, #b41f2c);
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 5-Step Delivery Progress Widths */
.order-timeline-container.is-delivery[data-current-step="1"] .order-timeline-progress { width: 0%; }
.order-timeline-container.is-delivery[data-current-step="2"] .order-timeline-progress { width: 25%; }
.order-timeline-container.is-delivery[data-current-step="3"] .order-timeline-progress { width: 50%; }
.order-timeline-container.is-delivery[data-current-step="4"] .order-timeline-progress { width: 75%; }
.order-timeline-container.is-delivery[data-current-step="5"] .order-timeline-progress { width: 100%; }

/* 4-Step Pickup Progress Widths */
.order-timeline-container.is-pickup[data-current-step="1"] .order-timeline-progress { width: 0%; }
.order-timeline-container.is-pickup[data-current-step="2"] .order-timeline-progress { width: 33.33%; }
.order-timeline-container.is-pickup[data-current-step="3"] .order-timeline-progress { width: 66.66%; }
.order-timeline-container.is-pickup[data-current-step="4"] .order-timeline-progress { width: 100%; }

/* 3-Step Restaurant Progress Widths */
.order-timeline-container.is-restaurant[data-current-step="1"] .order-timeline-progress { width: 0%; }
.order-timeline-container.is-restaurant[data-current-step="2"] .order-timeline-progress { width: 50%; }
.order-timeline-container.is-restaurant[data-current-step="3"] .order-timeline-progress { width: 100%; }

.order-timeline-steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.timeline-step .step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.timeline-step .dot-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
}

.timeline-step .dot-inner .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
    color: #ffffff;
}

.timeline-step .step-label {
    font-size: 11px;
    line-height: 1.25;
    font-weight: 500;
    color: #94a3b8;
    max-width: 72px;
    word-break: normal;
    transition: color 0.3s ease;
}

/* Completed Step State (Red Theme) */
.timeline-step.is-completed .step-dot {
    background: var(--default, #b41f2c);
    border-color: var(--default, #b41f2c);
    color: #ffffff;
}

.timeline-step.is-completed .dot-inner {
    color: #ffffff;
}

.timeline-step.is-completed .step-label {
    color: var(--default, #b41f2c);
    font-weight: 600;
}

/* Active / Current Step State (Red Theme Outline) */
.timeline-step.is-active .step-dot {
    background: #ffffff;
    border: 3px solid var(--default, #b41f2c);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.18);
    transform: scale(1.08);
}

.timeline-step.is-active .dot-inner {
    color: var(--default, #b41f2c);
    font-weight: 800;
}

.timeline-step.is-active .step-label {
    color: #1e293b;
    font-weight: 700;
}

/* When the whole order is finished */
.order-timeline-container.is-pickup[data-current-step="4"] .timeline-step.is-active .step-dot,
.order-timeline-container.is-delivery[data-current-step="5"] .timeline-step.is-active .step-dot,
.order-timeline-container.is-restaurant[data-current-step="3"] .timeline-step.is-active .step-dot {
    background: var(--default, #b41f2c);
    border-color: var(--default, #b41f2c);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.2);
}

.order-timeline-container.is-pickup[data-current-step="4"] .timeline-step.is-active .dot-inner,
.order-timeline-container.is-delivery[data-current-step="5"] .timeline-step.is-active .dot-inner,
.order-timeline-container.is-restaurant[data-current-step="3"] .timeline-step.is-active .dot-inner {
    color: #ffffff;
}

.order-timeline-container.is-pickup[data-current-step="4"] .timeline-step.is-active .step-label,
.order-timeline-container.is-delivery[data-current-step="5"] .timeline-step.is-active .step-label,
.order-timeline-container.is-restaurant[data-current-step="3"] .timeline-step.is-active .step-label {
    color: var(--default, #b41f2c);
}

@media (max-width: 480px) {
    .order-timeline-container {
        padding: 0 2px;
    }
    .timeline-step .step-dot {
        width: 28px;
        height: 28px;
    }
    .order-timeline-line {
        top: 22px;
        left: 18px;
        right: 18px;
    }
    .timeline-step .step-label {
        font-size: 10px;
        max-width: 60px;
    }
}

.order-completed .qrfood-delivery-forecast {
    display: none; /* Hidden for now as requested */
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 16px;
    margin: 10px auto 25px;
    align-items: center;
    gap: 12px;
    text-align: left;
    max-width: 320px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.order-completed .qrfood-delivery-forecast .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--default, #000);
}

.order-completed .qrfood-delivery-forecast-text {
    display: flex;
    flex-direction: column;
}

.order-completed .qrfood-delivery-forecast-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
}

.order-completed .qrfood-delivery-forecast-time {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-top: 2px;
}

/* Delivery Confirmation Security PIN Card */
.order-completed .qrfood-delivery-pin-card {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 16px auto 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    max-width: 340px;
    box-sizing: border-box;
}

.order-completed .qrfood-delivery-pin-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.order-completed .qrfood-delivery-pin-header .dashicons,
.order-completed .qrfood-delivery-pin-card > .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--default, #b41f2c);
    flex-shrink: 0;
}

.order-completed .qrfood-delivery-pin-content {
    display: flex;
    flex-direction: column;
}

.order-completed .qrfood-delivery-pin-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
}

.order-completed .qrfood-delivery-pin-code {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #0f172a;
    line-height: 1.2;
    margin: 4px 0 2px 0;
}

.order-completed .qrfood-delivery-pin-hint {
    margin: 0;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.3;
}

.order-completed .qrfood-delivery-pin-actions {
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
    display: flex;
}

.order-completed .qrfood-delivery-pin-actions.waiter-hidden {
    display: none !important;
}

.order-completed .btn-deliverer-whatsapp {
    width: 100%;
    min-height: 40px;
    height: 40px;
    background: #25d366;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.order-completed .btn-deliverer-whatsapp:hover,
.order-completed .btn-deliverer-whatsapp:focus {
    background: #1eb857;
    color: #ffffff !important;
    text-decoration: none !important;
}

.order-completed .btn-deliverer-whatsapp:active {
    transform: scale(0.98);
}

.order-completed .btn-deliverer-whatsapp .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    color: #ffffff;
}

.order-completed p strong {
    display: block;
    font-size: 3em;
    line-height: 1em;
}

/* FOOTER */

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--default);
}

footer .buttons {
    background: var(--default);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 52px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
}

footer .buttons * {
    color: white;
}

footer .buttons .button-cart {
    padding: 0 16px;
    height: 52px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
}

footer .buttons .button-cart .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

footer .buttons .button-cart .count {
    background: black;
    border-radius: 10px;
    min-width: 10px;
    height: 20px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    position: absolute;
    right: 4px;
    top: 6px;
}

footer .buttons .button-cart-total {
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.2px;
}

footer .buttons .button-checkout {
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
}

footer .buttons .button-checkout a {
    background: var(--hover);
    height: 52px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

footer .buttons .button-checkout a:hover {
    background: #000;
}

footer .buttons .button-checkout a.is-submitting {
    pointer-events: none;
    opacity: 0.85;
}

footer .buttons .button-checkout a.is-submitting .dashicons {
    animation: spin 1s linear infinite;
}

footer .buttons .button-checkout a.is-submitting .dashicons-yes:before {
    content: "\f463";
}

/* ==========================================================================
   Shopping Cart Bottom-Sheet Modal
   ========================================================================== */

.qrfood-cart-sheet-modal .qrfood-sheet-dialog {
    max-height: 85vh;
}

.qrfood-cart-header {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f1;
}

.qrfood-cart-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.qrfood-cart-title .dashicons {
    color: var(--default);
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.qrfood-cart-count-pill {
    background: var(--default);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    width: 22px;
    height: 20px;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px 0;
    margin-left: 6px;
    line-height: 1;
}

.qrfood-cart-body {
    padding: 10px 18px 16px 18px;
    overflow-y: auto;
    flex-grow: 1;
}

.qrfood-cart-body .woocommerce-mini-cart {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.qrfood-cart-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f1;
    display: flex;
    flex-direction: column;
}

.qrfood-cart-item:last-child {
    border-bottom: none;
}

.qrfood-cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.qrfood-cart-item-name {
    font-weight: 700;
    color: var(--dark-gray);
    line-height: 1.3;
    flex-grow: 1;
    text-transform: capitalize;
}

.qrfood-cart-item-variation {
    display: block;
    color: #646970;
    font-size: 14px;
    line-height: 1;
    margin-top: 8px;
    text-transform: capitalize;
}

.qrfood-cart-item-remove {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f6f7f7;
    color: #d63638;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.qrfood-cart-item-remove:hover {
    background: #ffebe9;
    color: #b32d2e;
}

.qrfood-cart-item-meta {
    margin: 4px 0;
}

.qrfood-cart-item-meta dl.variation {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qrfood-cart-item-meta dt {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #8a6a00;
    letter-spacing: 0.5px;
    margin: 0;
}

.qrfood-cart-item-meta dd {
    margin: 0 0 4px 0;
    font-size: 12px;
    color: #5c4300;
    background: #fff9e6;
    border-left: 3px solid #f0b849;
    padding: 5px 9px;
    border-radius: 0 4px 4px 0;
    line-height: 1.4;
}

.qrfood-cart-item-meta dd p {
    margin: 0;
    padding: 0;
}

.qrfood-cart-item-meta dt[class*="Observacao"],
.qrfood-cart-item-meta dt[class*="observacao"] {
    color: #8a6a00;
}

.qrfood-cart-item-meta dd[class*="Observacao"],
.qrfood-cart-item-meta dd[class*="observacao"] {
    background: #fff4d1;
    border-left-color: #dba617;
    font-style: italic;
    color: #4c3c00;
}

.qrfood-cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-size: 14px;
}

.qrfood-cart-item-qty {
    color: #646970;
}

.qrfood-cart-item-subtotal {
    color: var(--default);
    font-weight: 700;
    font-size: 15px;
}

.qrfood-cart-footer {
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid #f0f0f1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qrfood-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.qrfood-cart-total-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-gray);
}

.qrfood-cart-total-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--default);
}

.qrfood-cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border-radius: 8px;
    background: var(--default);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.qrfood-cart-checkout-btn:hover {
    background: #000000;
    color: #ffffff;
}

.qrfood-cart-checkout-btn.is-submitting {
    pointer-events: none;
    opacity: 0.85;
}

.qrfood-cart-checkout-btn.is-submitting .dashicons {
    animation: spin 1s linear infinite;
}

.qrfood-cart-checkout-btn.is-submitting .dashicons-yes:before {
    content: "\f463";
}

/* Fallback for variation in checkout table */
.checkout .shop_table .variation dt {
    float: left;
    margin-right: 5px;
}

.checkout .shop_table .variation dd p {
    padding: 0;
}

.store-closed-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--default);
    color: #fff;
    text-align: center;
    padding: 15px;
    z-index: 9999;
}

/* 404 NOT FOUND PAGE */

.page-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 30px 15px;
    text-align: center;
}

.page-404 .container-404 {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-404 .image-404 img {
    max-width: 260px;
    width: 100%;
    height: auto;
    animation: floatChef 3s ease-in-out infinite alternate;
}

@keyframes floatChef {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-8px);
    }
}

.page-404 .content-404 .badge-404 {
    display: inline-block;
    background: #FFF0F0;
    color: var(--default);
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.page-404 .content-404 h1 {
    font-size: 1.6em;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.page-404 .content-404 p {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 24px;
    padding-bottom: 0;
}

.page-404 .actions-404 .button-primary-404 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--default);
    color: #ffffff;
    font-size: 1em;
    font-weight: 700;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.3);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.page-404 .actions-404 .button-primary-404:hover {
    background: var(--hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.page-404 .actions-404 .button-primary-404 .dashicons {
    font-size: 1.3em;
    width: auto;
    height: auto;
    line-height: 1;
}

/* FLOATING CALL WAITER BUTTON & MODAL */

.floating-call-waiter-btn {
    position: fixed;
    bottom: calc(52px + 20px + env(safe-area-inset-bottom, 0px));
    left: 20px;
    z-index: 99;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e08e00;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 6px 15px 6px 12px;
    box-shadow: 0 4px 16px rgba(224, 142, 0, 0.4);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.78em;
    line-height: 1.15;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.floating-call-waiter-btn .call-waiter-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.15;
    letter-spacing: 0.2px;
}

body.qrfood-sheet-open .floating-call-waiter-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.floating-call-waiter-btn:hover {
    background: #b87500;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(224, 142, 0, 0.5);
}

.floating-call-waiter-btn:active {
    transform: translateY(0) scale(0.98);
}

.floating-call-waiter-btn .call-waiter-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: bellRing 3s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 70%, 100% { transform: rotate(0); }
    75% { transform: rotate(15deg); }
    80% { transform: rotate(-15deg); }
    85% { transform: rotate(10deg); }
    90% { transform: rotate(-10deg); }
    95% { transform: rotate(0); }
}

.customer-call-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.customer-call-modal.is-open {
    display: flex;
}

.customer-call-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.customer-call-modal-dialog {
    position: relative;
    z-index: 1;
    background: #ffffff;
    color: var(--dark-gray);
    width: 100%;
    max-width: 380px;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: callModalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes callModalPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.customer-call-modal-header {
    display: flex;
    align-items: center;
    padding: 20px 20px 14px 20px;
    gap: 12px;
    position: relative;
}

.customer-call-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff7ed;
    color: #d97706;
    border: 1px solid #fed7aa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.customer-call-modal-header h3 {
    margin: 0;
    font-size: 1.25em;
    font-weight: 700;
    color: var(--dark-gray);
    flex: 1;
}

.customer-call-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.customer-call-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.customer-call-modal-body {
    padding: 0 20px 20px 20px;
}

.customer-call-table-badge {
    display: inline-block;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 12px;
}

.customer-call-table-badge strong {
    color: #0f172a;
}

.customer-call-desc {
    margin: 0 0 16px 0;
    font-size: 0.95em;
    color: #475569;
    line-height: 1.5;
}

.customer-call-feedback {
    display: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9em;
    line-height: 1.4;
    margin-top: 10px;
}

.customer-call-feedback.is-visible {
    display: block;
}

.customer-call-feedback.is-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.customer-call-feedback.is-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.customer-call-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.btn-call-secondary {
    flex: 1;
    height: 44px;
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-call-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.btn-call-primary {
    flex: 1.4;
    height: 44px;
    background: #e08e00;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(224, 142, 0, 0.3);
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-call-primary:hover:not(:disabled) {
    background: #b87500;
}

.btn-call-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   QRFood Frontend Addons Action & Bottom Sheet Modal
   ========================================================================== */

.products .product .product-addons-action {
    grid-column: 1 / span 2;
    display: grid;
    grid-template-columns: auto 45px;
    border: 1px solid var(--lines);
    border-radius: 5px;
    padding: 10px 0 10px 15px;
    margin-top: 10px;
}

.products .product .product-addons-action .price {
    margin: 0;
    font-weight: 700;
    color: var(--default);
    line-height: 24px;
}

.products .product .product-addons-action button {
    cursor: pointer;
    transition: background 0.2s;
}

.products .product .product-addons-action button:hover {
    background: var(--default);
}

.products .product.has-modal-options figure,
.products .product.has-modal-options h3,
.products .product.has-modal-options .excerpt {
    cursor: pointer;
}

/* Bottom Sheet Modal Container */
.qrfood-product-sheet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000 !important;
    align-items: flex-end;
    justify-content: center;
    box-sizing: border-box;
}

.qrfood-product-sheet-modal.is-open {
    display: flex;
}

.qrfood-sheet-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.qrfood-sheet-dialog {
    position: relative;
    z-index: 2;
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: sheetSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
    .qrfood-product-sheet-modal {
        align-items: center;
        padding: 20px;
    }
    .qrfood-sheet-dialog {
        border-radius: 16px;
        max-height: 82vh;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
        animation: sheetPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        padding-top: 15px;
    }
}

@keyframes sheetSlideUp {
    from { transform: translateY(100%); opacity: 0.8; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes sheetPop {
    from { transform: scale(0.95) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.qrfood-sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: #dcdcde;
    border-radius: 2px;
    margin: 10px auto 4px auto;
    display: block;
}

@media (min-width: 640px) {
    .qrfood-sheet-drag-handle {
        display: none;
    }
}

.qrfood-sheet-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f1;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #50575e;
    z-index: 10;
    transition: background 0.2s, color 0.2s;
}

.qrfood-sheet-close-btn:hover {
    background: #e2e4e7;
    color: var(--dark-gray);
}

.qrfood-sheet-header {
    padding: 0 18px 14px 18px;
    border-bottom: 1px solid #f0f0f1;
}

.qrfood-sheet-product-summary {
    display: flex;
    gap: 20px;
    padding-top: 10px;
}

.qrfood-sheet-product-img-wrap {
    width: 100px;
    min-width: 100px;
    height: 100px;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--gray);
    flex-shrink: 0;
}

.qrfood-sheet-product-img-wrap:before {
    content: "\f187";
    font-family: Dashicons;
    font-size: 48px;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray);
    color: white;
}

.qrfood-sheet-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.qrfood-sheet-product-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
    flex-grow: 1;
    min-width: 0;
}

.qrfood-sheet-product-title {
    margin: 0;
    font-family: Raleway;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    text-transform: capitalize;
    padding: 0 28px 0 0;
    color: initial;
}

.qrfood-sheet-product-desc {
    color: var(--gray);
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
    text-transform: lowercase;
    padding: 0;
}

.qrfood-sheet-product-desc::first-letter {
    text-transform: uppercase;
}

.qrfood-sheet-product-price {
    color: var(--default);
    font-weight: 700;
    line-height: 24px;
    font-size: 1.1em;
    margin: 4px 0 0 0;
}

.qrfood-sheet-body {
    padding: 5px 18px 16px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.qrfood-sheet-loading {
    text-align: center;
    padding: 30px 10px;
    color: #646970;
}

.qrfood-sheet-loading .spin {
    animation: spin 1s infinite linear;
    font-size: 28px;
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.qrfood-sheet-section-title {
    font-weight: 700;
    color: var(--dark-gray);
    margin-top: 8px;
    margin-bottom: 8px;
    display: block;
}

/* Variations Chips */
.sheet-attr-group {
    margin-bottom: 14px;
}

.sheet-attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sheet-attr-chip {
    padding: 6px 14px;
    border: 1px solid #dcdcde;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    background: #ffffff;
    color: #2c3338;
    transition: all 0.2s;
}

.sheet-attr-chip.is-selected {
    border-color: var(--default);
    background: var(--default);
    color: #ffffff;
    font-weight: 600;
}

/* Addon groups */
.sheet-addon-group {
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.sheet-addon-group-header {
    background: #f6f7f7;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e4e7;
}

.sheet-addon-group-header .group-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-gray);
}

.sheet-addon-group-header .group-badge {
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e7f5ea;
    color: #1b5e20;
    font-weight: 600;
}

.sheet-addon-items-list {
    padding: 4px 14px;
}

.sheet-addon-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f1;
}

.sheet-addon-item-row:last-child {
    border-bottom: none;
}

.sheet-addon-item-info {
    display: flex;
    flex-direction: column;
}

.sheet-addon-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
}

.sheet-addon-item-price {
    font-size: 14px;
    color: var(--default);
    font-weight: 600;
}

.sheet-addon-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    overflow: hidden;
}

.sheet-addon-stepper-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f6f7f7;
    color: var(--dark-gray);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.sheet-addon-stepper-btn:hover:not(:disabled) {
    background: #e2e4e7;
}

.sheet-addon-stepper-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sheet-addon-stepper-val {
    width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-gray);
}

/* Notes section */
.qrfood-sheet-notes-input {
    width: 100%;
    min-height: 60px;
    padding: 8px 10px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

.qrfood-sheet-notes-input:focus {
    border-color: var(--default);
    outline: none;
}

/* Footer bar */
.qrfood-sheet-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #ffffff;
    border-top: 1px solid #f0f0f1;
}

.qrfood-sheet-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    overflow: hidden;
    height: 44px;
    flex-shrink: 0;
}

.sheet-qty-btn {
    width: 38px;
    height: 100%;
    border: none;
    background: #f6f7f7;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sheet-qty-btn:hover {
    background: #e2e4e7;
}

.sheet-qty-value {
    width: 32px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-gray);
}

.qrfood-sheet-submit-btn {
    flex-grow: 1;
    height: 44px;
    background: var(--default);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
}

.qrfood-sheet-submit-btn:hover {
    background: var(--hover);
}

.qrfood-sheet-submit-btn:active {
    transform: scale(0.98);
}

.qrfood-sheet-submit-btn:disabled {
    background: #a7aaad;
    cursor: not-allowed;
    transform: none;
}

/* Hide legacy order comments on checkout */
#order_comments_field {
    display: none !important;
}

/* ==========================================================================
   GLOBAL LOADING OVERLAY (STANDARDIZED BLUR OVERLAY - SINGLE GLOBAL COMPONENT)
   ========================================================================== */

#qrfoodGlobalLoading,
.qrfood-global-loading {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    width: 100dvw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    will-change: opacity !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

#qrfoodGlobalLoading.is-active,
.qrfood-global-loading.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: none !important;
}

#qrfoodGlobalLoading .qrfood-global-loading-backdrop,
.qrfood-global-loading .qrfood-global-loading-backdrop,
.qrfood-global-loading-backdrop {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.72) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

#qrfoodGlobalLoading .qrfood-global-loading-spinner-wrap,
.qrfood-global-loading .qrfood-global-loading-spinner-wrap,
.qrfood-global-loading-spinner-wrap {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    min-height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

#qrfoodGlobalLoading img,
#qrfoodGlobalLoading .qrfood-global-loading-logo,
.qrfood-global-loading img,
.qrfood-global-loading .qrfood-global-loading-logo,
img.qrfood-global-loading-logo {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    min-height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
    display: block !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* WOOCOMMERCE CHECKOUT BLOCKUI (NEUTRALIZE SO IT DOES NOT OVERLAP WITH GLOBAL LOADING) */
.blockUI.blockOverlay {
    display: none !important;
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.blockUI.blockMsg,
.blockUI.blockElement {
    display: none !important;
}