/* :root {

    --accent-color: #165633;
    --accent-contrast-text: #fff; 
    --text-primary: #165633;     
    --text-secondary: #5a6c7d;    
    --text-light: #ffffff; 
    --bg-main: #f5f5f5;          
    --bg-container: #ffffff;     
    --bg-light-gray: #f8f9fa; 
    --border-color: #e8e8e8;
    --border-color-darker: #dee2e6; 
    --danger-color: #dc3545; 
    --shadow-light: rgba(44, 62, 80, 0.08);
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
}
button.pfmi-add-to-order-btn:focus {
    color: #fff;
}
.pfmi-modal-container {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    width: 100%;
    height: 100vh;
    margin-top: 5rem;
    background-color: var(--bg-container);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px var(--shadow-light);
}


.pfmi-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-light-gray);
    border: 2px solid black;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 26px; /* Slightly smaller for a cleaner look */
    font-weight: bold;
    color: black;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s, color 0.2s;

    /* 🔥 THE CENTERING FIX 🔥 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important; /* 👈 Removed the 14px padding that was breaking it */
    line-height: 1 !important;
}

/* If the X still looks 1px too low on Android, 
   add only this tiny nudge:
*/
.pfmi-close-button {
    padding-bottom: 2px !important;
}
@media (max-width: 900px) {
    .pfmi-close-button {
        padding-top: 2px !important; 
    }
}

.pfmi-close-button:hover {
    background-color: var(--border-color);
    /* color: var(var(--text-primary)); */
    color: black;
}

.pfmi-product-info {
    /* background-color: var(--accent-contrast-text); */
    background-color:var(--accent-color);
    color: var(var(--text-primary));
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    border-right: 1px solid var(--border-color);
    /* overflow-y: auto; */
}

.pfmi-product-info img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 24px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.pfmi-product-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    margin-bottom: 8px;
    /* color: var(--accent-color); */
    color: #ffffff;
}


.pfmi-product-info h2 {
    font-size: 20px;
    font-weight: 700;
    /* color: var(--accent-color); */
    color: #fff;
    margin-top: 10px;
}

.pfmi-product-info p {
    font-size: 14px;
    line-height: 1.6;
    /* color: var(--accent-color); */
    color: #fff;
}

.pfmi-allergen-info {
    display: flex;
    gap: 8px;
    margin-top: 0px;
    margin-bottom: 16px;
    padding-bottom: 0;
    flex-wrap: wrap;
}

.pfmi-allergen-icon {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
    color: var(var(--text-secondary));
    background-color: #f0f2f5;
    transition: all 0.2s ease;
}

.pfmi-allergen-icon:hover {
    background-color: var(--border-color);
    transform: scale(1.1);
}

.pfmi-order-options {
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pfmi-scrollable-options {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    -webkit-overflow-scrolling: touch;
}

.pfmi-scrollable-options::-webkit-scrollbar {
    width: 6px;
}

.pfmi-scrollable-options::-webkit-scrollbar-track {
    background: var(--bg-light-gray);
    border-radius: 3px;
}

.pfmi-scrollable-options::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.pfmi-scrollable-options::-webkit-scrollbar {
    display: none;
}

.pfmi-scrollable-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


.pfmi-options-section h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 20px;
    color: var(var(--text-primary));
    border-bottom: 3px solid var(var(--accent-color));
    padding-bottom: 10px;
}

.pfmi-items-scroller-wrapper {
    position: relative;
    width: 100%;
}

.pfmi-items-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
    padding: 10px 0;
    margin-inline: 2.5rem;

}

.pfmi-items-scroller::-webkit-scrollbar {
    height: 6px;
}

.pfmi-items-scroller::-webkit-scrollbar-track {
    background: var(--bg-light-gray);
    border-radius: 3px;
}

.pfmi-items-scroller::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.pfmi-items-scroller::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.pfmi-items-grid {
    display: flex;
    gap: 16px;
    width: max-content;
}


.pfmi-item-details .pfmi-item-name {
    font-weight: 600;
    text-transform: capitalize;
    color: var(--text-primary);
    font-size: 12px;
    display: block;            /* Was: -webkit-box */

    overflow: visible;
    white-space: normal; 
}




.pfmi-item-controls {
    position: relative;
    width: 78px;
    height: 24px;
}

.pfmi-toggle-item-btn {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: none;
    background: linear-gradient(85deg, var(--accent-color), var(--accent-color));
    color: var(--accent-contrast-text);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease-in-out, background 0.2s;
    position: relative;
    padding: 0 8px;
}

.pfmi-toggle-item-btn:hover {
    color: var(--accent-contrast-text);
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px #f9f9f9;
}

.pfmi-item-quantity-selector,
.pfmi-extra-quantity {
    display: none !important;
}


/* .pfmi-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    color: var(var(--text-primary));
} */

.pfmi-scroll-arrow:hover {
    background-color: var(var(--accent-color));
    border-color: var(var(--accent-color));
    box-shadow: 0 4px 12px rgba(181, 235, 8, 0.4);
}

.pfmi-scroll-arrow:hover svg {
    stroke: var(var(--accent-contrast-text));
}

.pfmi-scroll-arrow.pfmi-left-arrow {
    left: 0;
}

.pfmi-scroll-arrow.pfmi-right-arrow {
    right: 0;
}

.pfmi-scroll-arrow.visible {
    display: flex;
}

.pfmi-scroll-arrow svg {
    transition: stroke 0.2s;
}



.pfmi-quantity-selector .pfmi-quantity {
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(var(--text-primary));
}

.pfmi-add-to-order-btn {
    background: linear-gradient(85deg, var(--accent-color), var(--accent-color));
    color: var(--accent-contrast-text);
    border: none;
    border-radius: 10px;
    padding: 0 28px;
    height: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pfmi-add-to-order-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px #f9f9f9;
    color: var(--accent-contrast-text);
}

@media (max-width: 900px) {
    .pfmi-modal-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        padding-bottom: 100px;
    }

    .pfmi-product-info {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
        display: flex;
        align-items: center;
    }

    .pfmi-product-info h1 {
        font-size: .8rem;
    }

    .pfmi-order-options {
        overflow-y: visible;
        padding: 24px;
    }

    .pfmi-scrollable-options {
        padding-right: 0;
    }

    .pfmi-items-scroller-wrapper {
        margin: 0;
    }

    .pfmi-items-scroller {
        overflow-x: visible;
        margin: 0;
        padding: 0;
    }

    .pfmi-items-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        gap: 12px;
    }

    .pfmi-item-card {
        width: 100%;
        min-width: unset;
    }

    .pfmi-item-card img {
        height: 140px;
    }

    .pfmi-order-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--bg-container);
        padding: 16px 24px;
        margin-top: 0;
        z-index: 10;
        box-shadow: 0 -2px 10px var(--shadow-light);
    }

    .pfmi-scroll-arrow {
        display: none !important;
    }

    .pfmi-product-info p {
        font-size: 12px;

    }

    .pfmi-product-info h2 {
        font-size: 14px;
    }

    .list_item {
        font-size: 12px;
    }

    .menu_list {
        gap: 1rem;
    }

    .cart_summary h3,
    #cart-grand-total,
    .guest-details-form h3,
    .checkout_btn {
        font-size: 16px;
    }
}

@media (max-width: 500px) {
    .pfmi-modal-container {
        padding-bottom: 150px;
    }

    .pfmi-product-info,
    .pfmi-order-options {
        padding: 20px;
    }

    .pfmi-items-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .pfmi-order-footer {
        flex-direction: row;
        gap: 12px;
        padding: 16px 20px;
    }

    .pfmi-quantity-selector {
        width: 80px !important;
    }

    .pfmi-quantity-selector .pfmi-quantity {
        width: 100%;
    }

    .pfmi-add-to-order-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        height: auto;
    }
}


.pfmi-popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.pfmi-popup-overlay:target,
.pfmi-popup-overlay[style*="display: flex"] {
    opacity: 1;
}

.pfmi-popup-content {
    background-color: var(--bg-container);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.pfmi-popup-overlay[style*="display: flex"] .pfmi-popup-content {
    transform: scale(1);
}


.pfmi-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.pfmi-popup-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(var(--text-primary));
    margin: 0;
}

#pfmi-popup-item-name {
    font-weight: normal;
    color: var(var(--text-secondary));
}


/* --- Red Circle Close Button Styling --- */
.pfmi-popup-close-btn {
    /* Dimensions for perfect circle */
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    padding: 0 !important;

    /* Colors */
    background-color: #dc3545 !important;
    /* Red */
    color: #ffffff !important;
    /* White X */
    border: none !important;

    /* Centering the X */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* Typography */
    font-size: 20px !important;
    line-height: 1 !important;
    cursor: pointer !important;

    /* Animation */
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Hover Effect */
.pfmi-popup-close-btn:hover {
    background-color: #c82333 !important;
    /* Darker Red */
    color: #ffffff !important;
    transform: scale(1.1) !important;
}



.pfmi-popup-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.pfmi-popup-body .pfmi-sub-addon-group {
    margin-bottom: 20px;
}

.pfmi-popup-body .pfmi-sub-addon-group h4 {
    font-size: 1em;
    margin-bottom: 10px;
}

.pfmi-popup-body .pfmi-sub-addon-list {
    padding-top: 1rem !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pfmi-popup-body .pfmi-sub-addon-item {
    margin-bottom: 8px;
    padding: 6px 0;
}

.pfmi-popup-body .pfmi-sub-addon-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95em;
}

.pfmi-popup-body .pfmi-sub-addon-item input {
    margin-right: 10px;
    accent-color: var(var(--accent-color));
}

.pfmi-popup-body .pfmi-sub-addon-name {
    flex-grow: 1;
}

.pfmi-popup-body .pfmi-sub-addon-price {
    margin-left: 10px;
    color: var(var(--accent-color));
    font-weight: 500;
}

.pfmi-popup-body .pfmi-item-disabled label {
    cursor: not-allowed;
    color: #999;
}

.pfmi-popup-body .pfmi-item-disabled input {
    accent-color: #ccc;
}


.pfmi-popup-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light-gray);
}

.pfmi-popup-sub-total {
    margin-right: auto;
    font-size: 0.9em;
    color: var(var(--text-secondary));
    font-weight: 500;
}


.pfmi-popup-confirm-btn,
.pfmi-popup-cancel-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, color 0.2s;
}

.pfmi-popup-confirm-btn {
    background: linear-gradient(85deg, var(--accent-color), var(--accent-color));
    color: var(--accent-contrast-text);
}

.pfmi-popup-confirm-btn:hover {
    filter: brightness(1.1);
}

.pfmi-popup-cancel-btn {
    background-color: var(--bg-light-gray);
    color: var(var(--text-primary));
    border: 1px solid var(--border-color-darker);
}

.pfmi-popup-cancel-btn:hover {
    background-color: #dee2e6;
}

@media (max-width: 600px) {
    .pfmi-popup-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .pfmi-popup-header,
    .pfmi-popup-body,
    .pfmi-popup-footer {
        padding: 16px;
    }

    .pfmi-popup-footer {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .pfmi-popup-confirm-btn,
    .pfmi-popup-cancel-btn {
        width: 100%;
    }

    .pfmi-popup-sub-total {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }
}

.pfmi-popup-body .pfmi-loading-text,
.pfmi-popup-body .pfmi-info-text,
.pfmi-popup-body .pfmi-error-text {
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: var(var(--text-secondary));
}

.pfmi-popup-body .pfmi-error-text {
    color: var(--danger-color);
    font-weight: bold;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.skeleton {
    background-color: var(--border-color);
    border-radius: 4px;
    background-image: linear-gradient(90deg,
            #ddd 0px,
            #eee 40px,
            #ddd 80px);
    background-size: 600px;
    animation: skeleton-shimmer 1.8s infinite linear;
}

.pfmi-product-info .skeleton {
    background-color: var(--accent-color);
    background-image: linear-gradient(90deg,
            #333 0px,
            #444 40px,
            #333 80px);
}



.pfm-top-controls .filter-main-btn:focus {
    background-color: var(--accent-color) !important;
}


.pfmi-options-section h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 20px !important;
    margin-top: 20px !important;
    color: #2c3e50;
    border-bottom: 3px solid #000;
    padding-bottom: 10px;
}

.pfmi-items-scroller-wrapper {
    position: relative;
    width: 100%;
}

.pfmi-items-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
    padding: 10px 0;
}

.pfmi-items-scroller::-webkit-scrollbar {
    height: 6px;
}

.pfmi-items-scroller::-webkit-scrollbar-track {
    background: var(--bg-light-gray);
    border-radius: 3px;
}

.pfmi-items-scroller::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.pfmi-items-scroller::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.pfmi-items-grid {
    display: flex;
    gap: 16px;
    width: max-content;
}


.pfmi-toggle-item-btn {
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px !important;
    border: none !important;
    background: var(--accent-color) !important;
    color: var(--accent-contrast-text) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out, background 0.2s !important;
    position: relative;
    padding: 0 8px !important;
    display: block !important;
}

.pfmi-toggle-item-btn:hover {
    color: var(--accent-contrast-text) !important;
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.08);
}



.pfmi-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    color: #2c3e50;
    padding: 0;
}

.pfmi-scroll-arrow:hover {
    background-color: var(--accent-color);
    border-color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.08);
}

.pfmi-scroll-arrow:hover svg {
    stroke: #fff;
}

.pfmi-scroll-arrow.pfmi-left-arrow {
    left: 0;
}

.pfmi-scroll-arrow.pfmi-right-arrow {
    right: 0;
}

.pfmi-scroll-arrow.visible {
    display: flex;
}

.pfmi-scroll-arrow svg {
    transition: stroke 0.2s;
}

.pfmi-modal-container .skeleton {
    background-color: var(--border-color);
    border-radius: 4px;
    background-image: linear-gradient(90deg,
            #ddd 0px,
            #eee 40px,
            #ddd 80px);
    background-size: 600px;
    animation: skeleton-shimmer 1.8s infinite linear;
}

.pfmi-modal-container .pfmi-product-info .skeleton {
    background-color: var(--accent-color);
    background-image: linear-gradient(90deg,
            #333 0px,
            #444 40px,
            #333 80px);
}


/* Start from here */
@media (max-width: 900px) {
    .pfmi-modal-container-overlay .pfmi-modal-container {
        grid-template-columns: 1fr !important;
        height: 100% !important;
        /* max-height: 100vh !important; */
        padding-bottom: 100px;
    }
.pfmi-item-details{
    font-size: 10px !important;
}
    .pfmi-modal-container-overlay .pfmi-product-info {
        display: flex;
        align-items: center !important;
        border-right: none !important;
        border-bottom: 1px solid #e8e8e8 !important;
        padding: 24px !important;
    }

    .pfmi-modal-container-overlay .pfmi-product-info img {
        width: 20% !important;
    }

    .pfmi-modal-container-overlay .pfmi-product-info h1 {
        font-size: .8rem !important;
    }

    .pfmi-modal-container-overlay .pfmi-product-info p {
        font-size: 12px !important;
    }

    .pfmi-modal-container-overlay .pfmi-product-info h2 {
        font-size: 14px !important;
    }


    .pfmi-modal-container-overlay .pfmi-order-options {
        overflow-y: visible !important;
        padding: 24px !important;
    }

    .pfmi-modal-container-overlay .pfmi-scrollable-options {
        padding-right: 0 !important;
    }

    .pfmi-modal-container-overlay .pfmi-items-scroller-wrapper {
        margin: 0 !important;
    }

    .pfmi-modal-container-overlay .pfmi-items-scroller {
        overflow-x: visible !important;
        margin: 0 !important;
        padding: 0 !important;

    }

    .pfmi-item-details .pfmi-item-price {
        font-size: 10px !important;
    }

    .pfmi-modal-container-overlay .pfmi-items-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
        gap: 12px !important;
    }

    /* .pfmi-modal-container-overlay .pfmi-item-card {
        width: 100% !important;
        min-width: unset !important;
    }

    .pfmi-modal-container-overlay .pfmi-item-card img {
        height: 140px !important;
    } */

    .pfmi-modal-container-overlay .pfmi-scroll-arrow {
        display: none !important;
    }

    .pfmi-item-controls {
        width: 50px;
        height: 32px;
    }

    .pfmi-toggle-item-btn {
        font-size: 12px;
    }

    .pfmi-addon-quantity {
        width: 50px;
        max-width: 90px;
        gap: 0rem !important;
        padding: 2px;
        justify-content: space-between;
    }

    .pfmi-addon-qty-btn {
        width: 18px !important;
        height: 28px !important;
        font-size: 1rem;
        flex-shrink: 0;
        min-width: 0;
    }

    .pfmi-addon-quantity .pfmi-quantity {
        min-width: 10px !important;
        font-size: 0.6rem !important;
        flex-shrink: 0;
    }

    /* --- END: Mobile Controls Fix --- */

}

@media (max-width: 500px) {

    .pfmi-modal-container-overlay .pfmi-product-info,
    .pfmi-modal-container-overlay .pfmi-order-options {
        padding: 20px !important;
        padding-bottom: 20px !important;
    }

    .pfmi-modal-container-overlay .pfmi-items-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
}


.pfmi-options-section h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 20px !important;
    margin-top: 20px !important;
    color: #2c3e50;
    border-bottom: 3px solid #000;
    padding-bottom: 10px;
}

.pfmi-items-scroller-wrapper {
    position: relative;
    width: 100%;
}

.pfmi-items-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
    padding: 10px 0;
}

.pfmi-items-scroller::-webkit-scrollbar {
    height: 6px;
}

.pfmi-items-scroller::-webkit-scrollbar-track {
    background: var(--bg-light-gray);
    border-radius: 3px;
}

.pfmi-items-scroller::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.pfmi-items-scroller::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.pfmi-items-grid {
    display: flex;
    gap: 16px;
    width: max-content;
}



.pfmi-item-details * {
    pointer-events: all;
}





.pfmi-item-details .pfmi-item-price {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 14px;
}



.pfmi-toggle-item-btn {
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px !important;
    border: none !important;
    background: var(--accent-color) !important;
    color: var(--accent-contrast-text) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out, background 0.2s !important;
    position: relative;
    padding: 0 8px !important;
    display: block !important;
}

.pfmi-toggle-item-btn:hover {
    color: var(--accent-contrast-text) !important;
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.08);
}

/* .pfmi-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #e8e8e8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    color: #2c3e50;
} */

.pfmi-scroll-arrow:hover {
    background-color: var(--accent-color);
    border-color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.08);
}

.pfmi-scroll-arrow:hover svg {
    stroke: #fff;
}

.pfmi-scroll-arrow.pfmi-left-arrow {
    left: 0;
}

.pfmi-scroll-arrow.pfmi-right-arrow {
    right: 0;
}

.pfmi-scroll-arrow.visible {
    display: flex;
}

.pfmi-scroll-arrow svg {
    transition: stroke 0.2s;
}

.pfmi-modal-container .skeleton {
    background-color: var(--border-color);
    border-radius: 4px;
    background-image: linear-gradient(90deg,
            #ddd 0px,
            #eee 40px,
            #ddd 80px);
    background-size: 600px;
    animation: skeleton-shimmer 1.8s infinite linear;
}

.pfmi-modal-container .pfmi-product-info .skeleton {
    background-color: var(--accent-color);
    background-image: linear-gradient(90deg,
            #333 0px,
            #444 40px,
            #333 80px);
}




@media (max-width: 900px) {

    .pfmi-modal-container-overlay {
        align-items: flex-start !important;
        overflow-y: auto !important;
    }

    .pfmi-modal-container-overlay .pfmi-modal-container {
        grid-template-columns: 1fr !important;
        height: auto !important;
        min-height: 100vh;
        padding-bottom: 0px;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .pfmi-modal-container-overlay .pfmi-product-info {
        /* display: none !important; */
        align-items: center !important;
        border-right: none !important;
        border-bottom: 1px solid #e8e8e8 !important;
        /* padding: 24px !important; */
        overflow-y: visible !important;
    }

    .pfmi-modal-container-overlay .pfmi-product-info img {
        width: 30% !important;
    }

    .pfmi-modal-container-overlay .pfmi-product-info h1 {
        font-size: .8rem !important;
    }

    .pfmi-modal-container-overlay .pfmi-product-info p {
        font-size: 12px !important;
    }

    .pfmi-modal-container-overlay .pfmi-product-info h2 {
        font-size: 14px !important;
    }

    .pfmi-modal-container-overlay .pfmi-order-options {
        overflow-y: visible !important;
        padding: 24px !important;
        min-height: auto;
    }

    .pfmi-modal-container-overlay .pfmi-scrollable-options {
        padding-right: 0 !important;
        overflow-y: visible !important;
        flex: none !important;
        max-height: none !important;
    }

    .pfmi-modal-container-overlay .pfmi-items-scroller-wrapper {
        margin: 0 !important;
    }

    .pfmi-modal-container-overlay .pfmi-items-scroller {
        overflow-x: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pfmi-modal-container-overlay .pfmi-items-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
        gap: 12px !important;
    }

.pfmi-item-card {
        width: 100% !important;
        min-width: unset !important;
        min-height: unset !important;
        /* height: auto !important; */
        align-self: start !important;
}
.pfmi-modal-container-overlay  {
        width: 100% !important;
        min-width: unset !important;
        min-height: unset !important;
        /* height: auto !important; */
        align-self: start !important;
}

.pfmi-modal-container-overlay .pfmi-item-card img,
.pfmi-modal-container-overlay .pfmi-item-card .pfmi-img-overlay {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

    .pfmi-modal-container-overlay .pfmi-scroll-arrow {
        display: none !important;
    }

    .pfmi-modal-container-overlay .pfmi-order-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 16px 24px;
        margin-top: 0;
        z-index: 10;
        box-shadow: 0 -2px 10px rgba(44, 62, 80, 0.08);
    }

    .pfmi-infodiv {
        display: flex;
        flex-direction: column;
    }
    
    main.pfmi-order-options {
        margin-bottom: 0px !important;
    }
}

@media (max-width: 500px) {
    .pfmi-modal-container-overlay .pfmi-modal-container {
        padding-bottom: 0px !important;
    }


    .pfmi-modal-container-overlay .pfmi-product-info,
    .pfmi-modal-container-overlay .pfmi-order-options {
        padding: 20px !important;
    }

    .pfmi-modal-container-overlay .pfmi-items-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .pfmi-modal-container-overlay .pfmi-order-footer {
        /* flex-direction: column; */
        flex-direction: row;
        /* gap: 12px;
        padding: 16px 20px; */
    }

    .pfmi-modal-container-overlay .pfmi-add-to-order-btn {
        width: 100%;
        justify-content: center;
        /* padding: 16px 24px; */
        padding-right: 20px;
        padding-left: 30px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    /* Target the specific image skeleton */
    #pfmi-product-image-skeleton {
        /* Force a fixed height so it doesn't take up the whole screen */
        height: 100px !important; 
        
        /* Change from square (1/1) to rectangle to save space */
        aspect-ratio: auto !important; 
        
        /* Ensure width stays full */
        width: 100% !important;
        
        /* Reduce the gap below it */
        margin-bottom: 15px !important;
    }
    
    /* 1. Target BOTH the Skeleton and the Real Image */
    #pfmi-product-image-skeleton,
    #pfmi-product-image {
        /* Force a fixed, smaller height */
        height: 130px !important; 
        
        /* Ensure they fill the width */
        width: 100% !important;
        
        /* Override the square (1/1) ratio */
        aspect-ratio: auto !important; 
        
        /* Make the image crop neatly to fill this box without stretching */
        object-fit: cover !important;
        
        /* Keep the rounded corners */
        border-radius: 12px !important;
        
        /* Consistent spacing */
        margin-bottom: 20px !important;
    }
}

.pfmi-item-card>img[src=""] {
    display: none !important;
}



.pfmi-addon-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light-gray);
    border-radius: 6px;
    padding: 2px;
}

.pfmi-addon-qty-btn {
    background-color: var(--accent-contrast-text);
    border: 1px solid var(--border-color-darker);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pfmi-addon-qty-btn:hover {
    background-color: var(var(--accent-color));
    color: var(--bs-black);
    border-color: var(var(--accent-color));
}

.pfmi-addon-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: var(--text-primary);
    background-color: #f1f3f5;
}

.pfmi-addon-quantity .pfmi-quantity {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 20px;
    text-align: center;
}


.pfmi-order-footer .pfmi-quantity-selector {
    display: flex;
    /* <--- THIS WAS MISSING */
    align-items: center;
    justify-content: space-between;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--bg-container);
    width: 90px;
    height: 50px;
}

.pfmi-order-footer .pfmi-quantity-selector button {
    background-color: var(--bg-container);
    /* Changed to container bg to blend in */
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 100%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    /* Ensure the +/- text is centered in the button */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.pfmi-order-footer .pfmi-quantity-selector button:hover {
    background-color: var(--bg-light-gray);
    /* Subtle hover effect */
    color: var(--accent-color);
}

.pfmi-order-footer .pfmi-quantity-selector button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: transparent;
}

.pfmi-order-footer .pfmi-quantity-selector .pfmi-quantity {
    flex-grow: 1;
    /* Allow number to fill space between buttons */
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}



.pfmi-card-qty-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--accent-contrast-text);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    /* Hidden by default */
    transform: scale(0.8);
    transition: all 0.2s ease;
    pointer-events: none;
}

/* Only show badge when card is selected */
.pfmi-item-card.selected .pfmi-card-qty-badge {
    opacity: 1;
    transform: scale(1);
}

.pfmi-sub-addon-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 2px;
}

.pfmi-sub-qty-btn {
    width: 24px !important;
    height: 24px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    color: #000 !important;
}

.pfmi-sub-qty-btn:hover {
    background: #eee !important;
    color: #000 !important;

}

.pfmi-sub-qty-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.pfmi-sub-qty-display {
    font-weight: 600 !important;
    min-width: 15px !important;
    text-align: center !important;
}

.pfmi-sub-addon-label {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    cursor: pointer !important;
}


.pfmi-item-card {
    position: relative;
    /* Critical for overlay positioning */
    flex-shrink: 0;
    width: 220px !important;
    min-width: 220px !important;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    /* Makes it look clickable */
    overflow: hidden;
    transition: all 0.2s ease;
}

/* Hover Effect */
.pfmi-item-card:hover:not(.selected) {
    border-color: #b0b0b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Selected State */
.pfmi-item-card.selected {
    border-color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Disabled State */
.pfmi-item-card[aria-disabled="true"],
.pfmi-item-card.pfmi-item-disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
}

/* 2. The Image & Overlay Logic */
.pfmi-item-card img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: contain;
    pointer-events: none;
    border-radius: 0;
    z-index: 1;
}

/* The Grey Overlay (Hidden by default) */
.pfmi-img-overlay  {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Matches image height */
    background-color: #95959587;
    /* Light Grey/White tint */
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    /* Allows click to go through to card */
    z-index: 2;
    /* Sits on top of image */
    display: block;
}

/* Show Overlay when selected */
.pfmi-item-card.selected .pfmi-img-overlay {
    opacity: 1;
}

/* 3. The Checkmark Badge */
.pfmi-item-card{
    position: relative;
}

/* FIX 1: Check badge - position it so it doesn't clip item name text */
.pfmi-check-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px; /* slightly smaller icon */
    z-index: 20;
    opacity: 0;
    transform: scale(0.6);
    transition: all .2s ease;
    pointer-events: none;
}

/* On mobile, make it smaller so it doesn't cover the name */
@media (max-width: 900px) {
    .pfmi-check-badge {
        width: 18px;
        height: 18px;
        font-size: 8px;
        top: 4px;
        right: 4px;
    }
}

.pfmi-item-card.selected .pfmi-check-badge{
    opacity:1;
    transform:scale(1);
}


/* 2. Ensure the Grey Overlay still appears when selected */
.pfmi-item-card.selected .pfmi-img-overlay {
    opacity: 1 !important;
    display: block !important;
}
/* 4. Item Details (Name, Price, Controls) */







/* 5. The Quantity Controls (+/-) */
/* Hidden by default via CSS - JS will set display:block if needed */
.pfmi-item-controls {
    display: none;
}

.pfmi-addon-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    height: 24px;
    overflow: hidden;
}

.pfmi-addon-qty-btn {
    width: 32px;
    height: 100%;
    border: none;
    background: #f8f9fa;
    color: #333;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.pfmi-addon-qty-btn:hover {
    background: #e9ecef;
}

.pfmi-quantity {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 32px;
}

/* Ensure mobile responsiveness */
@media (max-width: 900px) {
    .pfmi-item-card {
        width: 100% !important;
        min-width: unset !important;
    }
    
    .pfmi-item-card img,
    .pfmi-img-overlay {
        height: 140px !important;
    }
}

/* Footer styling - proper alignment for all screen sizes */
.pfmi-order-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

/* Quantity selector - left side */
.pfmi-quantity-selector {
    display: flex;
    align-items: center;
    /* gap: 16px; */
    flex-shrink: 0;
}

.pfmi-main-qty-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #333;
    background: #fff;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pfmi-main-qty-btn:hover:not(:disabled) {
    background: #333;
    color: #fff;
}

.pfmi-main-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pfmi-quantity-selector .pfmi-quantity {
    /* min-width: 50px; */
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

/* Stepper buttons wrapper - right side */
.pfmi-stepper-buttons-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    justify-content: flex-end;
}

/* Back button */
.pfmi-back-btn,
.pfmi-sub-back-btn {
    background: var(--bg-container);
    border: 2px solid #000;
    color: #000;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.pfmi-back-btn:hover,
.pfmi-sub-back-btn:hover {
    background: #000;
    color: var(--bg-container);
}

.pfmi-back-btn i,
.pfmi-sub-back-btn i {
    font-size: 14px;
}

/* Main action button (NEXT/ADD TO ORDER/CONFIRM SELECTION) */
/* .pfmi-add-to-order-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 180px;
    max-width: 250px;
} */

/* .pfmi-add-to-order-btn:hover:not(:disabled) {
    background: #333;
} */

.pfmi-add-to-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pfmi-add-to-order-btn i {
    font-size: 14px;
}

/* When there's no back button - center the main button */
.pfmi-order-footer:not(:has(.pfmi-back-btn)):not(:has(.pfmi-sub-back-btn)) .pfmi-add-to-order-btn {
    margin-left: auto;
}

/* Tablet - 900px and below */
@media (max-width: 900px) {
    .pfmi-order-footer {
        padding: 16px 20px;
        gap: 10px;
    }
    
    .pfmi-stepper-buttons-wrapper {
        gap: 10px;
    }
    
    .pfmi-back-btn,
    .pfmi-sub-back-btn {
        padding: 12px 20px;
    }
    
    .pfmi-add-to-order-btn {
        padding: 12px 28px;
        min-width: 150px;
        max-width: 200px;
    }
}

/* Mobile - 600px and below */
@media (max-width: 600px) {
    .pfmi-order-footer {
        flex-direction: row;
        gap: 12px;
        padding: 16px;
    }
    
    .pfmi-quantity-selector {
        width: 100%;
        justify-content: center;
        order: -1;
    }
    
    .pfmi-stepper-buttons-wrapper {
        width: 220px;
        gap: 10px;
    }
    
    .pfmi-back-btn,
    .pfmi-sub-back-btn {
        padding: 12px 20px;
        font-size: 14px;
        flex: 0 0 auto;
        min-width: 90px;
    }
    
    .pfmi-add-to-order-btn {
        flex: 1;
        max-width: 100%;
        /* min-width: 0; */
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .pfmi-main-qty-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Very small screens - 400px and below */
@media (max-width: 400px) {
    .pfmi-stepper-buttons-wrapper {
        flex-direction: row;
        gap: 8px;
    }
    
    .pfmi-back-btn,
    .pfmi-sub-back-btn {
        flex: 0 0 auto;
        min-width: 80px;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .pfmi-add-to-order-btn {
        flex: 1;
        padding: 12px 20px;
        font-size: 13px;
        min-width: 0;
    }
}
html {
    scrollbar-gutter: stable; /* Keeps the layout from shifting when modal opens */
}
/* 1. Stop the background from moving */
html.pfmi-no-scroll,
body.pfmi-no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
}

/* 2. Make sure the modal overlay stays in place */
.pfmi-modal-container-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden !important;
    overscroll-behavior: contain;
    z-index: 9999;
}

/* 3. On mobile - make the scrollable options actually scroll */
@media (max-width: 900px) {

    
    .pfmi-modal-container-overlay .pfmi-order-options {
        display: flex !important;
        flex-direction: column !important;
        height: calc(100vh - 150px) !important;
        overflow: hidden !important;
        /* -webkit-overflow-scrolling: touch; */
    }
}


@media (max-width: 900px) {
    .pfmi-modal-container-overlay .pfmi-scrollable-options {
        overflow-y: auto !important;
        flex: 1 !important;
        max-height: calc(100vh - 100px) !important;
        padding-bottom: 130px !important; /* Add space for fixed footer */
    }
    
    .pfmi-modal-container-overlay .pfmi-order-options {
        display: flex !important;
        flex-direction: column !important;
        height: calc(100vh - 150px) !important;
        overflow: hidden !important;
        padding-bottom: 0 !important; /* Remove any bottom padding here */
    }
}

/* For smaller screens with taller footer */
@media (max-width: 600px) {
    .pfmi-modal-container-overlay .pfmi-scrollable-options {
        padding-bottom: 300px !important; /* More space for column layout footer */
    }
}



/* .pfmi-item-details {
    display: flex ;
    flex-direction: row ; 
    justify-content: space-between ;
    align-items: flex-start ;
    padding: 10px ;
    gap: 8px ;
}

.pfmi-item-price-and-controls {
    display: flex ;
    flex-direction: column ;
    align-items: flex-end;
    width: 40% ; 
    text-align: right ;
} */

/* 1. DEFAULT STATE (Unselected): Name on left, Price on right */
.pfmi-item-details {
    display: flex !important;
    flex-direction: row !important; /* Keep them side-by-side initially */
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 8px !important;
}

.pfmi-item-name {
    flex: 1 !important;
    text-align: left !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.pfmi-item-price-and-controls {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important; /* Keep price tucked to the right */
    align-items: center !important;
    width: auto !important;
    flex-shrink: 0 !important;
}

/* 2. SELECTED STATE (For multi-select items): Stack them! */
.pfmi-item-card.selected:not(.pfmi-radio-item) .pfmi-item-details {
    flex-direction: column !important; /* Now it breaks into two rows */
    align-items: flex-start !important;
}

.pfmi-item-card.selected:not(.pfmi-radio-item) .pfmi-item-name {
    width: 100% !important;
    /* margin-bottom: 8px !important;  */
}

.pfmi-item-card.selected:not(.pfmi-radio-item) .pfmi-item-price-and-controls {
    width: 100% !important;
    justify-content: space-between !important; /* Price pushes left, buttons push right */
    margin-top: auto !important;
}

/* 3. SMART ALIGNMENT: Hide empty prices so the buttons slide left */
.pfmi-item-price:empty {
    display: none !important;
}


/*

 .pfmi-item-card.selected .pfmi-item-details {
    flex-direction: column ; 
    gap: 5px ;
}

.pfmi-item-card.selected .pfmi-item-price-and-controls {
    flex-direction: row ; 
    justify-content: space-between ; 
    align-items: center ;
    width: 100% ;
    margin-top: 5px ;
} */

.pfmi-item-card.selected .pfmi-item-price {
    text-align: left ;
}

.pfmi-item-card.selected .pfmi-item-name {
    width: 100%;
    padding-right: 28px;
    white-space: normal; 
    word-break: break-word;
}
button.pfmi-addon-qty-btn{
    background-color:#f8f9fa !important;
    color: var(--bs-black) !important;
}

.pfmi-back-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pfmi-back-btn:disabled:hover {
    background: inherit;
    box-shadow: none;
}

/* Upsell popup css */

#upsellPopupOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

#upsellPopup {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

#closeUpsellPopup {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10001;
  cursor: pointer;
  pointer-events: auto;
}

#upsellPopup h2,
#upsellPopup p {
  text-align: center;
  padding-right: 40px;
}

#upsellPopup #closeUpsellPopup {
  color: #000 !important;
  border: 2px solid #000 !important;
}

#upsellPopup #closeUpsellPopup:hover {
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
}

#upsellPopup h3 {
  display: none;
}

#upsellPopup p {
  padding-bottom: 20px;
}


/* ===== INLINE VALIDATION ERROR STYLES ===== */

/* Inline error banner - shown below the section that needs attention */
.pfmi-inline-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin: 16px 0 0 auto; /* auto left margin pushes it right */
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    animation: pfmi-error-fade-in 0.3s ease-out;
    width: fit-content;
    max-width: 400px;
    transition: opacity 0.5s ease-out;
}

.pfmi-inline-error-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #DC2626;
}

.pfmi-inline-error-icon svg {
    width: 18px;
    height: 18px;
}

.pfmi-inline-error-text {
    font-size: 14px;
    font-weight: 500;
    color: #DC2626;
    line-height: 1.4;
}

/* Section header wrapper for heading + required badge */
.pfmi-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pfmi-section-header h2 {
    margin: 0;
    flex: 1;
}

/* Required badge on the right side of the section header */
.pfmi-required-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #DC2626;
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Highlight section with error */
.pfmi-section-error {
    /* Subtle visual cue on the section itself */
}

/* Error fade-in animation */
@keyframes pfmi-error-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== POPUP INLINE ERROR (for sub-addon groups) ===== */
.pfmi-sub-addon-group .pfmi-inline-error {
    margin: 12px 0 0 0;
}

.pfmi-sub-addon-group.pfmi-section-error {
    padding-bottom: 4px;
}

@media (max-width: 900px) {
    .pfmi-modal-container-overlay .pfmi-product-info {
        display: grid !important;
        /* Column 1: Image (120px), Column 2: Text (remaining space) */
        grid-template-columns: 120px 1fr !important; 
        grid-template-areas: 
            "thumb title"
            "thumb desc"
            "thumb price" !important;
        gap: 0 20px !important; /* 0 vertical gap, 20px horizontal gap */
        align-items: start !important;
        padding: 20px !important;
    }

    /* Assign each element to its grid area */
    .pfmi-modal-container-overlay .pfmi-product-info img {
        grid-area: thumb !important;
        width: 120px !important;
        height: 120px !important;
        margin-bottom: 0 !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }

    .pfmi-modal-container-overlay .pfmi-product-info h1 {
        grid-area: title !important;
        font-size: 1rem !important;
        margin: 0 0 5px 0 !important;
    }

    .pfmi-modal-container-overlay .pfmi-product-info p {
        grid-area: desc !important;
        font-size: 13px !important;
        margin: 0 0 10px 0 !important;
        line-height: 1.4 !important;
        /* Ensure text doesn't wrap weirdly */
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pfmi-modal-container-overlay .pfmi-product-info h2 {
        grid-area: price !important;
        font-size: 16px !important;
        margin: 0 !important;
        align-self: end !important; /* Keeps price at the bottom of the text block */
    }
}
.pfmi-scroll-arrow{
    display:none !important;
}

/* Disable horizontal scrolling */
.pfmi-items-scroller{
    overflow:visible !important;
}

/* Grid layout: 4 items per row */
/* .pfmi-items-grid{
    display:grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap:15px;
} */
/* 1. Default Desktop (Strict 4 Columns) */
.pfmi-items-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; /* Force 4 */
    gap: 15px !important;
    width: 100% !important;
}

/* 2. Medium Screens (Under 1480px down to 900px) */
@media (max-width: 1480px) {
    .pfmi-items-grid {
        grid-template-columns: repeat(4, 1fr) !important; /* Drop to 3 */
    }
}

/* 3. Tablet & Mobile (Under 900px) */
@media (max-width: 900px) {
    .pfmi-items-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Drop to 2 */
        gap: 12px !important;
    }
}

/* 4. Tiny Phones (Under 340px) */
@media (max-width: 340px) {
    .pfmi-items-grid {
        grid-template-columns: 1fr !important; /* Stack to 1 if it's too squashed */
    }
}

/* Important: Keep the cards flexible so they fill the grid slots */
.pfmi-item-card {
    width: 100% !important;
    min-width: 0 !important;
}


/* Card width fix */
.pfmi-item-card{
    width:100% !important;
}

@media (max-width: 900px) {
    
    .pfmi-modal-container-overlay {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        align-items: flex-start !important;
    }

    .pfmi-modal-container-overlay .pfmi-modal-container {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important; 
        display: flex !important;
        flex-direction: column !important;
    }

    .pfmi-modal-container-overlay .pfmi-order-options {
        height: auto !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        flex: 1 0 auto !important;
    }

    .pfmi-modal-container-overlay .pfmi-scrollable-options {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 24px !important;
        padding-bottom: 40px !important; 
    }

    .pfmi-modal-container-overlay .pfmi-order-footer {
        position: sticky !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        margin-top: auto !important;
        z-index: 1000 !important;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1) !important;
    }
}

#pfmi-selected-summary {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pfmi-selected-chip {
    display: inline-block;
    background: #ffffff;      /* black background */
    border: 1px solid #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--accent-color);           /* white text */
    font-weight: bold;
}





@media (max-width: 340px) {
    .pfmi-modal-container-overlay .pfmi-product-info h1 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        font-size: 0.9rem !important; 
        line-height: 1.2 !important;
        
        /* THE FIX: Add space on the right so it doesn't hit the X */
        padding-right: 35px !important; 
        display: block !important;
    }

    /* Adjust the close button size for tiny screens so it takes up less room */
    .pfmi-close-button {
        width: 32px !important;
        height: 32px !important;
        font-size: 22px !important;
        top: 10px !important;
        right: 10px !important;
    }
}
@media (max-width: 340px) {
    /* 1. Tighten the footer container */
    .pfmi-modal-container-overlay .pfmi-order-footer {
        padding: 10px 8px !important; /* Extremely tight horizontal padding */
        gap: 6px !important; /* Reduce the space between elements */
    }

    /* 2. Shrink the main Quantity Selector (Left side) */
    .pfmi-quantity-selector {
        gap: 4px !important;
    }

    .pfmi-main-qty-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
        border-width: 1px !important; /* Thinner border to save internal pixels */
    }

    .pfmi-quantity-selector .pfmi-quantity {
        font-size: 14px !important;
        min-width: 20px !important;
    }

    /* 3. Shrink the Stepper/Buttons Wrapper (Right side) */
    .pfmi-stepper-buttons-wrapper {
        gap: 5px !important;
        flex: 1 !important; /* Allow it to take up the remaining space */
        justify-content: flex-end !important;
    }

    /* 4. Shrink the Back and Add buttons */
    .pfmi-back-btn, 
    .pfmi-sub-back-btn {
        padding: 14px 10px !important;
        font-size: 11px !important;
        min-width: 60px !important;
        gap: 4px !important;
    }

    .pfmi-add-to-order-btn {
        padding: 24px 12px !important;
        font-size: 11px !important;
        min-width: 110px !important; /* Minimum width to keep "ADD TO ORDER" readable */
        max-width: none !important;
        gap: 4px !important;
        height: 38px !important; /* Smaller height */
    }

    /* 5. Hide the Icon inside the Add button to save horizontal room */
    .pfmi-add-to-order-btn i {
        display: none !important;
    }
    .pf-float-inner {
        padding: 10px 15px;

    }
    .pf-float-left span,.pf-float-center span,.pf-float-right span {
        font-size: 10px;
    }
}


.pfmi-modal-container {
    overflow: hidden;
}

.pfmi-order-options {
    min-width: 0;
    overflow-x: hidden;
}

.pfmi-scrollable-options {
    overflow-x: hidden;
    min-width: 0;
}

.pfmi-options-section {
    min-width: 0;
    width: 100%;
}

.pfmi-section-header h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pfmi-items-scroller-wrapper {
    min-width: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.pfmi-items-scroller {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.pfmi-items-scroller::-webkit-scrollbar {
    display: none;
}

.pfmi-items-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    width: max-content

}


.pfmi-items-scroller {
  overflow-x: auto;
  overflow-y: visible !important;
  scrollbar-width: none;
  margin-top: 12px;
  padding-bottom: 4px; /* space for bottom border */
  padding-top: 4px;    /* space for top border */
}

.pfmi-items-grid {
  padding: 3px; /* prevents border clipping on all sides */
}

@media (max-width: 900px) {
    .pfmi-modal-container-overlay .pfmi-product-info h2#pfmi-product-price {
        align-self: start !important;
        margin-top: -25 !important;
    }
}


@media (max-width: 900px) {
    .pfmi-selected-chip {
        display: inline;
        background: none;
        border: none;
        padding: 0;
        border-radius: 0;
        font-size: 12px;
        color: #000;
        font-weight: normal;
    }

    .pfmi-selected-chip::after {
        content: ", ";
    }

    .pfmi-selected-chip:last-child::after {
        content: "";
    }
}



.pfmi-product-info{
display:flex;
flex-wrap:wrap;
align-items:flex-start;
gap:0px;
}

#pfmi-product-price{
white-space:nowrap;
}

#pfmi-selected-summary{
flex:1;
font-size:13px;
}


@media (max-width: 900px) {
    #pfmi-product-price {
        display: flex !important;
        align-items: baseline !important;
        gap: 4px !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    #pfmi-selected-summary {
        display: inline !important;
        font-size: 11px !important;
        font-weight: normal !important;
        color: #666 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 130px !important;
        flex: 0 1 auto !important;
    }

    .pfmi-selected-chip {
        display: inline !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        font-size: 11px !important;
        color: #666 !important;
        font-weight: normal !important;
    }

    .pfmi-selected-chip::after {
        content: ", ";
    }

    .pfmi-selected-chip:last-child::after {
        content: "";
    }
}



@media (max-width: 900px) {
    .pfmi-modal-container-overlay .pfmi-product-info {
        grid-template-columns: 120px 1fr !important;
        grid-template-areas: 
            "thumb title"
            "thumb desc"
            "thumb price"
            "thumb summary" !important;
        gap: 0 20px !important;
        align-items: start !important;
        padding: 20px !important;
    }

    #pfmi-selected-summary {
        grid-area: summary !important;
        display: block !important;
        font-size: 11px !important;
        font-weight: normal !important;
        color: #666 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        margin-top: 2px !important;
    }
}


@media (max-width: 900px) {
    .pfmi-modal-container-overlay .pfmi-product-info {
        grid-template-columns: 120px 1fr !important;
        grid-template-areas: 
            "thumb title"
            "thumb desc"
            "thumb price"
            "thumb summary" !important;
        grid-template-rows: auto auto auto auto !important;
        gap: 0 20px !important;
        align-items: start !important;
        padding: 20px !important;
        align-content: start !important;
    }

    #pfmi-selected-summary {
        grid-area: summary !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 2px 4px !important;
        overflow: visible !important;
        margin: 2px 0 0 0 !important;
    }

    .pfmi-selected-chip {
        display: inline !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        font-size: 11px !important;
        color: #666 !important;
        font-weight: normal !important;
        white-space: nowrap !important;
    }

    .pfmi-selected-chip::after { content: ","; }
    .pfmi-selected-chip:last-child::after { content: ""; }
}



@media (max-width: 900px) {
    #pfmi-selected-summary {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 2px 4px !important;
        overflow: visible !important;
        margin: 2px 0 0 0 !important;
    }
}


@media (max-width: 900px) {
    #pfmi-product-price {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        font-size: 14px !important;
        margin: 0 !important;
        width: 100% !important;
    }

    #pfmi-selected-summary {
        display: inline-flex !important;
        flex-wrap: wrap !important;
        gap: 2px 4px !important;
        margin: 0 !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .pfmi-selected-chip {
        display: inline !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        font-size: 11px !important;
        color: #fff !important;
        font-weight: normal !important;
        white-space: nowrap !important;
    }

    .pfmi-selected-chip::after { content: ", "; }
    .pfmi-selected-chip:last-child::after { content: ""; }
}








/* Default layout */
.pfmi-item-price-and-controls{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* When addon is selected */
/* .pfmi-item-card.selected .pfmi-item-details{
    flex-direction:column !important;
    align-items:flex-start !important;
}

/* Base item name styling (Allows wrapping on all items) */
.pfmi-item-details .pfmi-item-name {
    font-weight: 600;
    text-transform: capitalize;
    color: var(--text-primary);
    font-size: 12px;
    display: block;
    flex: 1 !important;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.2;
}

/* When multi-select addon is selected (BUT NOT for single-select radio items) */
.pfmi-item-card.selected:not(.pfmi-radio-item) .pfmi-item-details {
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* Move price below name and spread out (BUT NOT for single-select radio items) */
.pfmi-item-card.selected:not(.pfmi-radio-item) .pfmi-item-price-and-controls {
    margin-top: 4px;
    width: 100% !important;
    justify-content: space-between !important;
}

.pfmi-items-scroller {
    align-items: flex-start !important;
}


/* Hide main item quantity selector completely */
.pfmi-quantity-selector {
    display: none !important;
}

/* Mobile: spread Back and Next/Add to opposite ends */
@media (max-width: 900px) {
    .pfmi-order-footer {
        justify-content: space-between !important;
        padding: 16px 20px !important;
    }

    .pfmi-stepper-buttons-wrapper {
        width: 100% !important;
        justify-content: space-between !important;
    }

    /* When there's no stepper wrapper (just the Add button alone) */
    .pfmi-order-footer:not(:has(.pfmi-stepper-buttons-wrapper)) .pfmi-add-to-order-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (hover: hover) {
    .pfmi-back-btn:hover,
    .pfmi-sub-back-btn:hover {
        background: #000;
        color: var(--bg-container);
    }
}

@media (hover: none) {
    .pfmi-back-btn:hover,
    .pfmi-sub-back-btn:hover {
        background: var(--bg-container) !important;
        color: #000 !important;
    }
}

.pfmi-stepper-buttons-wrapper {
    margin-left: auto;
}

/* FIX 3: Overlay radius must match the card's top corners */
.pfmi-img-overlay {
    border-radius: 12px 12px 0 0 !important;
    overflow: hidden !important;
}

@media (max-width: 900px) {
    .pfmi-img-overlay {
        border-radius: 12px 12px 0 0;
    }
}

.pfmi-items-grid {
    align-items: start !important;
    grid-auto-rows: auto !important;
}

.pfmi-item-card {
    align-self: start !important;
    height: auto !important;
}

.pfmi-item-card.skeleton {
    min-height: 250px !important;
}

@media (max-width: 900px) {
    .pfmi-item-card.skeleton {
        min-height: 160px !important;
    }
}

/* No-image card: compact */
.pfmi-item-card.pfmi-no-image {
    height: 100% !important;
    min-height: unset;
    padding: 12px;
    align-self: start;
}

.pfmi-item-card.pfmi-no-image img,
.pfmi-item-card.pfmi-no-image .pfmi-img-overlay {
    display: none;
    height: 0;
}

.pfmi-item-card.pfmi-no-image .pfmi-check-badge {
    top: 6px;
    right: 6px;
}

.pfmi-item-card.pfmi-no-image .pfmi-item-details {
    padding: 4px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.pfmi-item-card.pfmi-no-image .pfmi-item-name {
    font-size: 13px;
    line-height: 1.3;
    padding-right: 26px;
}

.pfmi-item-card.pfmi-no-image .pfmi-item-price-and-controls {
    width: 100%;
    justify-content: space-between;
    margin-top: 4px;
}

.pfmi-item-card.pfmi-no-image .pfmi-item-price {
    font-size: 13px;
}

@media (max-width: 900px) {
    .pfmi-item-card.pfmi-no-image {
        padding: 10px;
    }

    .pfmi-item-card.pfmi-no-image .pfmi-item-name {
        font-size: 12px;
    }
}/*no image code */

.card-qty-container:empty {
    display: none !important;
}








/* ===============================
   RIBBON LABEL - RESPONSIVE FIX
================================ */

/* Wrapper clips the ribbon triangle that goes outside the card */


/* The ribbon band itself */
.pfmi-ribbon {
    position: absolute;
    top: 18px;
    left: -22px;
    width: 110px;
    background: #e60023;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 0;
    transform: rotate(-45deg);
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    line-height: 1.2;
}
.pfmi-card,
.pfmi-img-wrapper {
    position: relative;
    overflow: hidden;
}

/* Addon cards - smaller ribbon */
.pfmi-item-card .pfmi-ribbon-wrapper {
    width: 60px;
    height: 60px;
}

.pfmi-item-card .pfmi-ribbon {
    top: 12px;
    left: -18px;
    width: 80px;
    font-size: 7px;
    padding: 3px 0;
    letter-spacing: 0.3px;
}

/* Product image panel - larger ribbon */
.pfmi-product-image-wrapper .pfmi-ribbon-wrapper,
.pfmi-left-panel .pfmi-ribbon-wrapper {
    width: 100px;
    height: 100px;
}

.pfmi-product-image-wrapper .pfmi-ribbon,
.pfmi-left-panel .pfmi-ribbon {
    top: 24px;
    left: -28px;
    width: 140px;
    font-size: 11px;
    padding: 5px 0;
}

/* ===============================
   PRICE & DISCOUNT STYLING
================================ */
.pfmi-current-price {
    color: var(--color-text-primary, #000);
    font-weight: 800;
}

.pfmi-old-price {
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: #e60023;
    text-decoration-thickness: 2px;
    margin-left: 6px;
    font-size: 0.88em;
}

/* ===============================
   TABLET
================================ */
@media (max-width: 1024px) {
    .pfmi-product-image-wrapper .pfmi-ribbon-wrapper,
    .pfmi-left-panel .pfmi-ribbon-wrapper {
        width: 88px;
        height: 88px;
    }

    .pfmi-product-image-wrapper .pfmi-ribbon,
    .pfmi-left-panel .pfmi-ribbon {
        top: 20px;
        left: -24px;
        width: 120px;
        font-size: 10px;
    }
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {
    .pfmi-ribbon-wrapper {
        width: 68px;
        height: 68px;
    }

    .pfmi-ribbon {
        top: 16px;
        left: -20px;
        width: 96px;
        font-size: 8px;
    }

    .pfmi-item-card .pfmi-ribbon-wrapper {
        width: 52px;
        height: 52px;
    }

    .pfmi-item-card .pfmi-ribbon {
        top: 10px;
        left: -16px;
        width: 70px;
        font-size: 6.5px;
    }
}

/* ===============================
   SMALL MOBILE
================================ */
@media (max-width: 480px) {
    .pfmi-ribbon-wrapper {
        width: 60px;
        height: 60px;
    }

    .pfmi-ribbon {
        top: 14px;
        left: -18px;
        width: 85px;
        font-size: 7.5px;
    }
}















