/**
 * IZIII Web App — Main Stylesheet
 * Mobile-first design system using CSS custom properties.
 * Variables injected from PHP via <style id="iwa-css-variables"> in wp_head.
 */

/* ── Reset & Base ──────────────────────────────────────── */
body.iziii-web-app,
body.iziii-web-app *,
body.iziii-web-app *::before,
body.iziii-web-app *::after {
    box-sizing: border-box;
}

body.iziii-web-app {
    margin: 0;
    padding: 0;
    font-family: var(--iwa-font);
    background: var(--iwa-bg);
    color: var(--iwa-text);
    font-size: var(--iwa-size-text, 15px);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body.iziii-web-app #outer-wrap,
body.iziii-web-app #wrap,
body.iziii-web-app #main,
body.iziii-web-app #content-wrap,
body.iziii-web-app #primary,
body.iziii-web-app #content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    background: var(--iwa-bg) !important;
}

/* Hide OceanWP elements */
body.iziii-web-app #site-header,
body.iziii-web-app #site-navigation-wrap,
body.iziii-web-app #footer,
body.iziii-web-app #footer-widgets,
body.iziii-web-app #footer-bottom,
body.iziii-web-app .oceanwp-mobile-menu-icon,
body.iziii-web-app #scroll-top,
body.iziii-web-app .woocommerce-breadcrumb,
body.iziii-web-app .page-header,
body.iziii-web-app #cookie-banner,
body.iziii-web-app #owp-cart-sidebar-wrap,
body.iziii-web-app .owp-cart-sidebar-overlay,
body.iziii-web-app .oceanwp-cart-sidebar-wrap,
body.iziii-web-app #side-panel-wrap,
body.iziii-web-app #sidr,
body.iziii-web-app #mobile-fullscreen,
body.iziii-web-app .oceanwp-off-canvas-filter,
body.iziii-web-app dialog {
    display: none !important;
}

/* ── Header ────────────────────────────────────────────── */
.iwa-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--iwa-header-bg);
    color: var(--iwa-header-text);
    padding: 0 16px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.iwa-header-back,
.iwa-header-back:link,
.iwa-header-back:visited,
.iwa-header-back:active {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    color: #fff !important;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .2s;
    flex-shrink: 0;
    line-height: 1;
}

.iwa-header-back:hover {
    background: rgba(255,255,255,.25);
    color: #fff !important;
}

.iwa-header-close,
.iwa-header-close:link,
.iwa-header-close:visited,
.iwa-header-close:active {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    color: #fff !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .2s;
    flex-shrink: 0;
}
.iwa-header-close:hover {
    background: rgba(255,255,255,.25);
    color: #fff !important;
}

.iwa-header-menu-link,
.iwa-header-menu-link:link,
.iwa-header-menu-link:visited,
.iwa-header-menu-link:active {
    color: rgba(255,255,255,.7) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-decoration: none !important;
    flex-shrink: 0;
    padding: 4px 0;
}

.iwa-header-menu-link:hover {
    color: #fff !important;
}

.iwa-header-title {
    font-size: 17px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iwa-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.iwa-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    color: var(--iwa-header-text);
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: background .2s;
}

.iwa-header-btn:hover {
    background: rgba(255,255,255,.2);
}

.iwa-exit-btn {
    background: rgba(255, 80, 80, .2);
}

.iwa-exit-btn:hover {
    background: rgba(255, 80, 80, .35);
}

.iwa-cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--iwa-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.iwa-cart-count:empty {
    display: none;
}

/* ── Page container ────────────────────────────────────── */
.iwa-page {
    min-height: calc(100vh - 56px);
    padding-bottom: 80px; /* space for sticky bar */
}

.iwa-container {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Landing page ──────────────────────────────────────── */
.iwa-landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 2.5vh 24px 40px;
    background-color: var(--iwa-bg);
    background-size: cover;
    background-position: center;
    position: relative;
}

.iwa-landing.has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

.iwa-landing > * {
    position: relative;
    z-index: 1;
}

.iwa-landing-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: var(--iwa-radius);
}

.iwa-landing-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--iwa-text);
    margin: 0 0 8px;
}

.iwa-landing-subtitle {
    font-size: 16px;
    color: var(--iwa-text-secondary);
    margin: 0 0 40px;
}

.iwa-landing.has-bg-image .iwa-landing-title {
    color: #fff;
}

.iwa-landing.has-bg-image .iwa-landing-subtitle {
    color: rgba(255,255,255,.8);
}

/* Table number (from QR code) */
.iwa-landing-table {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 10px 24px;
    background: var(--iwa-bg-alt);
    border: 1px solid var(--iwa-border);
    border-radius: var(--iwa-btn-radius);
}

.iwa-landing-table-label {
    color: var(--iwa-text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.iwa-landing-table .iwa-landing-table-number {
    color: var(--iwa-text);
    font-size: 22px;
    font-weight: 700;
}

/* Manual table input */
.iwa-landing-table-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 340px;
}

.iwa-landing-table-input .iwa-landing-table-label {
    color: var(--iwa-text-secondary);
    font-size: var(--iwa-size-text, 15px);
    font-weight: 500;
}

.iwa-table-required-note {
    color: #dc2626;
    font-weight: 700;
}

.iwa-table-field {
    width: 100%;
    padding: 18px 20px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: var(--iwa-text);
    background: var(--iwa-bg-alt);
    border: 1px solid var(--iwa-border);
    border-radius: var(--iwa-btn-radius);
    outline: none;
    transition: border-color .2s;
    -moz-appearance: textfield;
}

.iwa-table-field::-webkit-inner-spin-button,
.iwa-table-field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.iwa-table-field::placeholder {
    color: var(--iwa-text-secondary);
    font-weight: 400;
    font-size: var(--iwa-size-text, 15px);
}

.iwa-table-field:focus {
    border-color: var(--iwa-accent);
}

.iwa-table-field-error {
    border-color: #e53e3e !important;
    animation: iwa-shake .4s ease;
}

.iwa-table-error-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #dc2626;
    text-align: center;
    font-weight: 600;
}

@keyframes iwa-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.iwa-landing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 48px;
    background: var(--iwa-gradient);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--iwa-btn-radius);
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .3s, border-color .3s;
}

.iwa-landing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    color: #fff;
}

.iwa-landing-lang {
    margin-top: 64px;
    display: flex;
    gap: 16px;
}

.iwa-landing-lang a {
    color: var(--iwa-text-secondary);
    font-size: 14px;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--iwa-border);
    border-radius: var(--iwa-btn-radius);
    transition: all .2s;
}

.iwa-landing-lang a:hover,
.iwa-landing-lang a.current-lang {
    color: var(--iwa-text);
    border-color: var(--iwa-text);
}

.iwa-landing-footer-text {
    margin-top: 20px;
    color: var(--iwa-text-secondary);
    font-size: var(--iwa-size-text, 15px);
    text-align: center;
    max-width: 300px;
}

/* ── Landing with background image: white text overrides ── */
.iwa-landing.has-bg-image .iwa-landing-table {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255,255,255,.25);
}
.iwa-landing.has-bg-image .iwa-landing-table-label { color: rgba(255,255,255,.8); }
.iwa-landing.has-bg-image .iwa-landing-table .iwa-landing-table-number { color: #fff; }
.iwa-landing.has-bg-image .iwa-landing-table-input .iwa-landing-table-label { color: rgba(255,255,255,.8); }
.iwa-landing.has-bg-image .iwa-table-required-note { color: #fecaca; }
.iwa-landing.has-bg-image .iwa-table-field {
    color: #fff;
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.iwa-landing.has-bg-image .iwa-table-error-text { color: #fecaca; }
.iwa-landing.has-bg-image .iwa-table-field::placeholder { color: rgba(255,255,255,.4); }
.iwa-landing.has-bg-image .iwa-table-field:focus { border-color: rgba(255,255,255,.7); }
.iwa-landing.has-bg-image .iwa-landing-lang a { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.3); }
.iwa-landing.has-bg-image .iwa-landing-lang a:hover,
.iwa-landing.has-bg-image .iwa-landing-lang a.current-lang { color: #fff; border-color: #fff; }
.iwa-landing.has-bg-image .iwa-landing-footer-text { color: rgba(255,255,255,.5); }

/* ── Landing: Group ordering ───────────────────────────── */
.iwa-landing-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
}

/* Active (primary) CTA button */
.iwa-landing-cta-active {
    background: var(--iwa-gradient) !important;
    border: 2px solid transparent;
    color: #fff !important;
}

/* Secondary (inactive) CTA button */
.iwa-landing-cta-secondary {
    background: rgba(255,255,255,.15) !important;
    border: 2px solid rgba(255,255,255,.4);
    color: #fff !important;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: var(--iwa-radius);
    text-align: center;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.iwa-landing-cta-secondary:hover {
    background: rgba(255,255,255,.25) !important;
    border-color: rgba(255,255,255,.6);
}
.iwa-landing.has-bg-image .iwa-landing-cta-secondary {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Inline group choices below the CTA buttons */
.iwa-landing-group-inline {
    width: 100%;
    max-width: 320px;
    margin-top: 4px;
}

/* Group sub-screens */
.iwa-landing-group,
.iwa-landing-group-join,
.iwa-landing-group-share {
    width: 100%;
    max-width: 340px;
    text-align: center;
}

.iwa-group-back {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--iwa-accent, #4f46e5);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 12px;
}
.iwa-landing.has-bg-image .iwa-group-back { color: rgba(255,255,255,.8); }

.iwa-group-screen-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--iwa-text);
    margin: 0 0 4px;
}
.iwa-landing.has-bg-image .iwa-group-screen-title { color: #fff; }

.iwa-group-screen-desc {
    font-size: 14px;
    color: var(--iwa-muted);
    margin: 0 0 20px;
}
.iwa-landing.has-bg-image .iwa-group-screen-desc { color: rgba(255,255,255,.6); }

/* Choice cards */
.iwa-group-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Horizontal row variant for inline group choices */
.iwa-group-choices-row {
    flex-direction: row;
}

.iwa-group-choices-row .iwa-group-choice {
    flex: 1;
    min-width: 0;
    padding: 14px 10px;
}

.iwa-group-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 16px;
    background: var(--iwa-bg);
    border: 2px solid var(--iwa-border);
    border-radius: var(--iwa-radius);
    cursor: pointer;
    transition: border-color .2s, transform .15s;
    text-align: center;
}
.iwa-group-choice:hover {
    border-color: var(--iwa-accent);
    transform: translateY(-1px);
}
.iwa-landing.has-bg-image .iwa-group-choice {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.25);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.iwa-landing.has-bg-image .iwa-group-choice:hover {
    border-color: rgba(255,255,255,.6);
}

.iwa-group-choice-icon {
    font-size: 28px;
    line-height: 1;
}

.iwa-group-choice-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--iwa-text);
}
.iwa-landing.has-bg-image .iwa-group-choice-label { color: #fff; }

.iwa-group-choice-desc {
    font-size: 13px;
    color: var(--iwa-muted);
}
.iwa-landing.has-bg-image .iwa-group-choice-desc { color: rgba(255,255,255,.55); }

/* Join form */
.iwa-group-code-input {
    margin: 20px 0;
}

.iwa-group-code-field {
    width: 180px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 10px;
    text-align: center;
    text-transform: uppercase;
    padding: 12px 16px;
    border: 2px solid var(--iwa-border);
    border-radius: var(--iwa-radius);
    background: var(--iwa-bg);
    color: var(--iwa-text);
    outline: none;
}
.iwa-group-code-field:focus {
    border-color: var(--iwa-accent);
}
.iwa-landing.has-bg-image .iwa-group-code-field {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.3);
    color: #fff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.iwa-landing.has-bg-image .iwa-group-code-field::placeholder { color: rgba(255,255,255,.3); }

.iwa-group-error {
    color: #ef4444;
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0 0;
}

/* Share / code display */
.iwa-group-code-display {
    margin: 16px 0;
}

.iwa-group-code-value {
    display: inline-block;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 8px;
    color: var(--iwa-accent);
    background: var(--iwa-bg);
    border: 3px solid var(--iwa-accent);
    border-radius: var(--iwa-radius);
    padding: 12px 24px;
}
.iwa-landing.has-bg-image .iwa-group-code-value {
    color: #fff;
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.iwa-group-share-hint {
    font-size: 14px;
    color: var(--iwa-muted);
    margin: 0 0 16px;
}
.iwa-landing.has-bg-image .iwa-group-share-hint { color: rgba(255,255,255,.6); }

/* Group code badge (returning member on landing) */
.iwa-landing-group-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 20px;
    padding: 8px 18px;
    background: rgba(255,255,255,.12);
    border: 2px solid rgba(255,255,255,.35);
    border-radius: 50px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.iwa-landing-group-badge-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .7;
}
.iwa-landing-group-badge-code {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 4px;
}

/* Members list */
.iwa-group-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.iwa-group-member {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: var(--iwa-bg);
    border: 1px solid var(--iwa-border);
    color: var(--iwa-text);
}
.iwa-landing.has-bg-image .iwa-group-member {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.25);
    color: #fff;
}

/* ── Group banner (shown across all pages when in a group) ── */
.iwa-group-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--iwa-accent, #4f46e5);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.iwa-group-banner-code {
    font-weight: 800;
    letter-spacing: 2px;
}

.iwa-group-banner-members {
    opacity: .8;
}

.iwa-group-banner-share {
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s;
}
.iwa-group-banner-share:hover {
    background: rgba(255,255,255,.35);
}

.iwa-group-banner-leave {
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s;
    line-height: 1;
    padding: 0;
    margin-left: 2px;
}
.iwa-group-banner-leave:hover {
    background: rgba(255,80,80,.6);
}

/* Group share modal (reuse of the code display) */
.iwa-group-share-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iwa-modal-pop .2s;
}
.iwa-group-share-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}
.iwa-group-share-modal-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    max-width: 320px;
    width: calc(100% - 40px);
    animation: iwa-modal-pop .25s;
}
.iwa-group-share-modal-box .iwa-group-code-value {
    color: var(--iwa-accent);
    background: #f8f8f8;
    border-color: var(--iwa-accent);
}

/* ── Category list (home / shop) ───────────────────────── */
.iwa-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iwa-category-card {
    display: flex;
    border-radius: var(--iwa-radius);
    overflow: hidden;
    background: var(--iwa-bg);
    border: 1px solid var(--iwa-border);
    text-decoration: none;
    color: var(--iwa-text);
    transition: box-shadow .2s, transform .15s;
}

.iwa-category-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform: translateY(-1px);
}

.iwa-category-img {
    width: 120px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.iwa-category-info {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.iwa-category-name {
    font-family: var(--iwa-font-categories);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
}

.iwa-category-count {
    font-size: 13px;
    color: var(--iwa-text-secondary);
}

.iwa-category-desc {
    font-size: 13px;
    color: var(--iwa-text-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iwa-category-hours {
    font-size: 12px;
    color: var(--iwa-accent);
    margin-top: 2px;
}

/* Full-width display mode */
.iwa-categories-full .iwa-category-card-full {
    flex-direction: column;
}

.iwa-categories-full .iwa-category-card-full .iwa-category-img {
    width: 100%;
    height: 180px;
}

.iwa-categories-full .iwa-category-card-full .iwa-category-info {
    padding: 14px 16px;
    text-align: center;
    align-items: center;
}

/* Subcategory pills (horizontal scroll on product cat pages) */
.iwa-subcategories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.iwa-subcategories::-webkit-scrollbar {
    display: none;
}

.iwa-subcategory-pill {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: var(--iwa-btn-radius);
    background: var(--iwa-bg-alt);
    color: var(--iwa-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--iwa-border);
    white-space: nowrap;
    transition: all .2s;
}

.iwa-subcategory-pill:hover,
.iwa-subcategory-pill.active {
    background: var(--iwa-accent);
    color: #fff;
    border-color: var(--iwa-accent);
}

/* ── Product list ──────────────────────────────────────── */
.iwa-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iwa-product-card {
    display: flex;
    border-radius: var(--iwa-radius);
    overflow: hidden;
    background: var(--iwa-bg);
    border: 1px solid var(--iwa-border);
    text-decoration: none;
    color: var(--iwa-text);
    transition: box-shadow .2s;
    position: relative;
}

.iwa-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.iwa-product-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.iwa-product-img.no-image {
    display: none;
}

.iwa-product-info {
    flex: 1;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.iwa-product-name {
    font-family: var(--iwa-font-products);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 2px;
}

.iwa-product-desc {
    font-size: 13px;
    color: var(--iwa-text-secondary);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iwa-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.iwa-product-price {
    font-family: var(--iwa-font-prices);
    font-size: var(--iwa-size-price, 16px);
    font-weight: 700;
    color: var(--iwa-text);
}

.iwa-product-price del {
    color: var(--iwa-text-secondary);
    font-weight: 400;
    font-size: 13px;
}

.iwa-product-price ins {
    text-decoration: none;
}

.iwa-product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--iwa-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--iwa-btn-radius);
}

/* Allergens inline */
ul.iwa-allergens {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

ul.iwa-allergens li {
    display: flex;
    align-items: center;
}

ul.iwa-allergens li svg {
    width: 22px;
    height: 22px;
}

ul.iwa-allergens li img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

ul.iwa-allergens li a {
    display: flex;
    align-items: center;
}

ul.iwa-allergens li {
    cursor: pointer;
}

/* ── Allergen zoom modal ───────────────────────────────── */
.iwa-allergen-zoom {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iwa-allergen-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.iwa-allergen-zoom-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    text-align: center;
    min-width: 160px;
    max-width: 260px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
    animation: iwa-modal-pop .25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.iwa-allergen-zoom-icon img,
.iwa-allergen-zoom-icon svg {
    width: 80px !important;
    height: 80px !important;
}

.iwa-allergen-zoom-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--iwa-text, #1a1a1a);
    line-height: 1.3;
}

/* Cart qty badge next to product name */
.iwa-product-qty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #e53935;
    border-radius: 9px;
    padding: 0 5px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1;
}

/* ── Product detail ────────────────────────────────────── */
.iwa-product-detail {
    padding-bottom: 0;
}

.iwa-product-hero {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.iwa-product-detail-body {
    padding: 20px 16px;
}

.iwa-product-detail-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}

.iwa-product-detail-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--iwa-accent);
    margin: 0 0 12px;
}

.iwa-product-detail-desc {
    font-size: 14px;
    color: var(--iwa-text-secondary);
    line-height: 1.6;
    margin: 0 0 20px;
}

/* WooCommerce add-to-cart form */
.iwa-add-to-cart-form {
    margin-top: 8px;
    padding-bottom: 144px; /* space for sticky bar + bottom nav */
}

.iwa-add-to-cart-form form.cart {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Fixed bar background at bottom, above bottom nav */
.iwa-add-to-cart-form form.cart::after {
    content: '';
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 80px;
    height: calc(80px + env(safe-area-inset-bottom));
    background: var(--iwa-bg);
    border-top: 1px solid var(--iwa-border);
    z-index: 89;
    pointer-events: none;
}

/* Quantity selector — fixed bottom-left */
.iwa-add-to-cart-form .quantity {
    position: fixed;
    bottom: 74px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    left: 16px;
    z-index: 91;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--iwa-border);
    border-radius: var(--iwa-btn-radius);
    overflow: hidden;
    background: var(--iwa-bg);
    height: 52px;
}

.iwa-add-to-cart-form .quantity label {
    display: none;
}

/* +/- buttons — large for fat fingers */
.iwa-add-to-cart-form .quantity .iwa-qty-minus,
.iwa-add-to-cart-form .quantity .iwa-qty-plus,
.iwa-add-to-cart-form .quantity .minus,
.iwa-add-to-cart-form .quantity .plus {
    width: 52px;
    height: 52px;
    border: none;
    background: var(--iwa-bg);
    color: var(--iwa-text);
    font-size: 26px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.iwa-add-to-cart-form .quantity .iwa-qty-minus:active,
.iwa-add-to-cart-form .quantity .iwa-qty-plus:active,
.iwa-add-to-cart-form .quantity .minus:active,
.iwa-add-to-cart-form .quantity .plus:active {
    background: var(--iwa-bg-alt);
}

.iwa-add-to-cart-form .quantity input[type="number"] {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: none;
    border-left: 1px solid var(--iwa-border);
    border-right: 1px solid var(--iwa-border);
    background: var(--iwa-bg);
    color: var(--iwa-text);
    -moz-appearance: textfield;
    outline: none;
    padding: 0;
}

.iwa-add-to-cart-form .quantity input[type="number"]::-webkit-inner-spin-button,
.iwa-add-to-cart-form .quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to order button — fixed, fills remaining width right of quantity */
.iwa-add-to-cart-form .single_add_to_cart_button,
.iwa-add-to-cart-form button[type="submit"] {
    position: fixed;
    bottom: 74px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    right: 16px;
    left: 168px; /* 16px margin + ~140px quantity (52+44+52) + 12px gap */
    z-index: 91;
    padding: 0 20px;
    background: var(--iwa-gradient);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--iwa-btn-radius);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    text-align: center;
    white-space: nowrap;
    height: 52px;
    line-height: 52px;
}

.iwa-add-to-cart-form .single_add_to_cart_button:hover,
.iwa-add-to-cart-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* Hide PEWC total row inside the scrollable form — not needed in sticky bar */
.iwa-add-to-cart-form .pewc-total-field-wrapper {
    display: none !important;
}

/* PEWC addons container */
.iwa-product-detail .pewc-product-extra-groups-wrap {
    margin-top: 8px;
}

/* PEWC Group sections */
.iwa-product-detail .pewc-group-wrap {
    margin-bottom: 0;
    border-bottom: 1px solid var(--iwa-border);
}

/* Hide PEWC group title ("Avec mon dessert") — field labels are the accordion headers */
.iwa-product-detail .pewc-group-heading-wrapper {
    display: none !important;
}

.iwa-product-detail .pewc-group-content-wrapper {
    padding: 0;
}

.iwa-product-detail .pewc-group-description {
    padding: 8px 16px;
    margin: 0;
    font-size: 13px;
    color: var(--iwa-text-secondary);
}

/* PEWC items list */
.iwa-product-detail .pewc-product-extra-groups {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iwa-product-detail .pewc-item {
    border-bottom: 1px solid var(--iwa-border);
    padding: 0;
    list-style: none;
}

.iwa-product-detail .pewc-item:last-child {
    border-bottom: none;
}

/* PEWC field label — accordion header (gray bg, chevron) */
.iwa-product-detail .pewc-field-label {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--iwa-text);
    margin: 0;
    background: var(--iwa-bg-alt);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    gap: 6px;
}

/* Chevron arrow on field labels */
.iwa-product-detail .pewc-field-label::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--iwa-text-secondary);
    border-bottom: 2px solid var(--iwa-text-secondary);
    transform: rotate(45deg);
    transition: transform .25s ease;
    flex-shrink: 0;
    margin-left: auto;
    margin-bottom: 4px;
}

.iwa-product-detail .pewc-item.iwa-field-collapsed .pewc-field-label::after {
    transform: rotate(-45deg);
    margin-bottom: 0;
    margin-top: 4px;
}

/* Collapse content below field label (inside pewc-item-field-wrapper) */
.iwa-product-detail .pewc-item.iwa-field-collapsed .pewc-item-field-wrapper > *:not(.pewc-field-label) {
    display: none !important;
}

/* Hide the asterisk — replaced by (obligatoire) via JS */
.iwa-product-detail .pewc-field-label .required {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    overflow: hidden !important;
}

.iwa-product-detail .pewc-field-label .iwa-obligatoire {
    font-weight: 400;
    font-size: 13px;
    color: var(--iwa-text-secondary);
}

.iwa-product-detail .pewc-field-label .pewc-field-price {
    font-weight: 600;
    color: var(--iwa-text-secondary);
    white-space: nowrap;
    margin-left: auto;
}

/* Hide field images (placeholder Etiquette) — show clean list */
.iwa-product-detail .pewc-item-field-image-wrapper {
    display: none;
}

/* PEWC checkbox/radio groups — list style matching visuels */
.iwa-product-detail .pewc-checkbox-group-wrapper {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iwa-product-detail .pewc-checkbox-group-wrapper li {
    border-bottom: 1px solid var(--iwa-border);
}

.iwa-product-detail .pewc-checkbox-group-wrapper li:last-child {
    border-bottom: none;
}

.iwa-product-detail .pewc-checkbox-group-wrapper label,
.iwa-product-detail .pewc-checkbox-form-label {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: var(--iwa-size-text, 15px);
    font-weight: 500;
    color: var(--iwa-text);
    cursor: pointer;
    gap: 12px;
    margin: 0;
}

.iwa-product-detail .pewc-checkbox-form-field,
.iwa-product-detail .pewc-radio-form-field {
    width: 26px;
    height: 26px;
    min-width: 26px;
    accent-color: var(--iwa-accent);
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.iwa-product-detail .pewc-option-cost-label {
    margin-left: auto;
    font-weight: 600;
    color: var(--iwa-text-secondary);
    white-space: nowrap;
}

/* PEWC products as checkboxes/radio with images — override to list layout */
.iwa-product-detail .pewc-checkboxes-images-wrapper,
.iwa-product-detail .pewc-radio-images-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.iwa-product-detail .pewc-checkbox-image-wrapper,
.iwa-product-detail .pewc-radio-image-wrapper {
    width: 100% !important;
    border-bottom: 1px solid var(--iwa-border);
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
}

.iwa-product-detail .pewc-checkbox-image-wrapper:last-child,
.iwa-product-detail .pewc-radio-image-wrapper:last-child {
    border-bottom: none;
}

.iwa-product-detail .pewc-checkbox-image-wrapper label,
.iwa-product-detail .pewc-radio-image-wrapper label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 14px 16px !important;
    gap: 12px !important;
    cursor: pointer;
}

/* Hide actual checkbox/radio inputs — visual handled by label::before */
.iwa-product-detail .pewc-checkbox-image-wrapper input[type="checkbox"],
.iwa-product-detail .pewc-radio-image-wrapper input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Visual checkbox circle on each option row */
.iwa-product-detail .pewc-checkbox-image-wrapper label::before {
    content: '';
    display: block;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border: 2px solid var(--iwa-border);
    border-radius: 6px;
    background: var(--iwa-bg);
    flex-shrink: 0;
    transition: background .15s, border-color .15s;
    box-sizing: border-box;
}

.iwa-product-detail .pewc-checkbox-image-wrapper.checked label::before {
    background: var(--iwa-accent);
    border-color: var(--iwa-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
}

/* Visual radio circle on each radio option row */
.iwa-product-detail .pewc-radio-image-wrapper label::before {
    content: '';
    display: block;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border: 2px solid var(--iwa-border);
    border-radius: 50%;
    background: var(--iwa-bg);
    flex-shrink: 0;
    transition: background .15s, border-color .15s;
    box-sizing: border-box;
}

.iwa-product-detail .pewc-radio-image-wrapper.checked label::before {
    border-color: var(--iwa-accent);
    background: radial-gradient(circle, var(--iwa-accent) 40%, transparent 41%);
}

/* Hide product option images — show as clean text list */
.iwa-product-detail .pewc-checkbox-image-wrapper img,
.iwa-product-detail .pewc-radio-image-wrapper img,
.iwa-product-detail .label-content-wrapper > img,
.iwa-product-detail .pewc-checkbox-desc-wrapper img {
    display: none !important;
}

.iwa-product-detail .label-content-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    gap: 12px !important;
}

.iwa-product-detail .pewc-checkbox-desc-wrapper,
.iwa-product-detail .pewc-radio-image-desc {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    font-size: var(--iwa-size-text, 15px) !important;
    font-weight: 500 !important;
    color: var(--iwa-text) !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* PEWC child quantity field */
.iwa-product-detail .pewc-child-quantity-field {
    width: 48px !important;
    height: 36px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--iwa-border);
    border-radius: var(--iwa-radius);
    background: var(--iwa-bg);
    color: var(--iwa-text);
    margin-right: 8px;
}

/* PEWC selected state */
.iwa-product-detail .pewc-checkbox-image-wrapper.checked,
.iwa-product-detail .pewc-radio-image-wrapper.checked {
    background: var(--iwa-bg-alt) !important;
}

/* PEWC totals */
.iwa-product-detail .pewc-total-field-wrapper {
    background: var(--iwa-bg-alt);
    padding: 12px 16px;
    margin-top: 4px;
    border-radius: var(--iwa-radius);
}

.iwa-product-detail .pewc-total-field-wrapper p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 6px 0;
    font-size: var(--iwa-size-text, 15px);
    color: var(--iwa-text);
}

.iwa-product-detail .pewc-total-field-wrapper p:last-child {
    font-weight: 700;
    font-size: 16px;
    border-top: 1px solid var(--iwa-border);
    padding-top: 10px;
    margin-top: 4px;
}

.iwa-product-detail .pewc-total-field {
    font-weight: 700;
    color: var(--iwa-accent);
}

/* PEWC textarea (Notes field) */
.iwa-product-detail .pewc-item textarea,
.iwa-product-detail .pewc-item input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--iwa-border);
    border-radius: var(--iwa-radius);
    font-size: var(--iwa-size-text, 15px);
    font-family: var(--iwa-font-body);
    color: var(--iwa-text);
    background: var(--iwa-bg);
    resize: vertical;
    min-height: 80px;
    outline: none;
    box-sizing: border-box;
    margin: 8px 16px 16px;
    width: calc(100% - 32px);
}

.iwa-product-detail .pewc-item textarea:focus,
.iwa-product-detail .pewc-item input[type="text"]:focus {
    border-color: var(--iwa-accent);
}

.iwa-product-detail .pewc-item textarea::placeholder,
.iwa-product-detail .pewc-item input[type="text"]::placeholder {
    color: var(--iwa-text-secondary);
    opacity: 0.6;
}

/* Quantity selector */
.iwa-qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--iwa-border);
    border-radius: var(--iwa-btn-radius);
    overflow: hidden;
}

.iwa-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--iwa-bg-alt);
    font-size: 18px;
    font-weight: 600;
    color: var(--iwa-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.iwa-qty-btn:hover {
    background: var(--iwa-border);
}

.iwa-qty-value {
    width: 48px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--iwa-text);
}

/* ── Sticky bottom bar ─────────────────────────────────── */
.iwa-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: var(--iwa-bg);
    border-top: 1px solid var(--iwa-border);
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.iwa-btn-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--iwa-gradient);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--iwa-btn-radius);
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.iwa-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    color: #fff;
}

.iwa-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: var(--iwa-bg-alt);
    color: var(--iwa-text);
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--iwa-border);
    border-radius: var(--iwa-btn-radius);
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
}

.iwa-btn-secondary:hover {
    background: var(--iwa-border);
}

/* ── Stepper progress ───────────────────────────────────── */
.iwa-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: var(--iwa-bg);
    border-bottom: 1px solid var(--iwa-border);
}

.iwa-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.iwa-step-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--iwa-border);
    background: var(--iwa-bg);
    transition: all .2s;
}

.iwa-step.active .iwa-step-dot {
    border-color: var(--iwa-accent);
    background: var(--iwa-accent);
}

.iwa-step.completed .iwa-step-dot {
    border-color: var(--iwa-accent);
    background: var(--iwa-accent);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iwa-step-line {
    flex: 1;
    height: 2px;
    background: var(--iwa-border);
    margin: 0 8px;
    margin-bottom: 20px;
}

.iwa-step-line.active {
    background: var(--iwa-gradient);
}

.iwa-step-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--iwa-text-secondary);
}

.iwa-step.active .iwa-step-label {
    color: var(--iwa-text);
}

/* ── Cart review ───────────────────────────────────────── */
.iwa-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iwa-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--iwa-border);
    border-radius: var(--iwa-radius);
    background: var(--iwa-bg);
}

.iwa-cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: calc(var(--iwa-radius) * .6);
    flex-shrink: 0;
}

.iwa-cart-item-info {
    flex: 1;
    min-width: 0;
}

.iwa-cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
}

.iwa-cart-item-meta {
    font-size: 12px;
    color: var(--iwa-text-secondary);
}

.iwa-cart-item-price {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.iwa-cart-item-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--iwa-bg-alt);
    border-radius: 50%;
    color: var(--iwa-text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}

.iwa-cart-item-remove:hover {
    background: #fee;
    color: #e00;
}

/* Tips section */
.iwa-tips {
    margin: 20px 0;
}

.iwa-tips-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px;
}

.iwa-tips-options {
    display: flex;
    gap: 8px;
}

.iwa-tip-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--iwa-border);
    border-radius: var(--iwa-btn-radius);
    background: var(--iwa-bg);
    font-size: 14px;
    font-weight: 600;
    color: var(--iwa-text);
    cursor: pointer;
    text-align: center;
    transition: all .2s;
}

.iwa-tip-btn:hover,
.iwa-tip-btn.active {
    border-color: var(--iwa-accent);
    background: var(--iwa-accent);
    color: #fff;
}

/* Cart totals */
.iwa-cart-totals {
    margin: 20px 0;
    padding: 16px;
    background: var(--iwa-bg-alt);
    border-radius: var(--iwa-radius);
}

.iwa-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}

.iwa-cart-total-row.total {
    font-size: 18px;
    font-weight: 700;
    border-top: 1px solid var(--iwa-border);
    margin-top: 8px;
    padding-top: 12px;
}

/* ── Checkout page ─────────────────────────────────────── */

/* Hide login/coupon toggles, shipping, additional fields, WAD coupon */
.iwa-checkout .woocommerce-form-login-toggle,
.iwa-checkout .woocommerce-form-coupon-toggle,
.iwa-checkout h3#ship-to-different-address,
.iwa-checkout .woocommerce-additional-fields,
.iwa-checkout .woocommerce-form-login,
.iwa-checkout .wad-form-coupon,
.iwa-checkout #restomax_number_table_field {
    display: none !important;
}

/* Hide WC notices (cart messages) on checkout */
.iwa-checkout .woocommerce-notices-wrapper {
    display: none !important;
}

/* Hide cookie banner and loader */
.iziii-web-app #cookie-banner,
.iziii-web-app #loader {
    display: none !important;
}

/* Checkout layout */
.iwa-checkout .woocommerce-checkout {
    padding: 0;
}

.iwa-checkout .col2-set {
    width: 100%;
}

.iwa-checkout .col2-set .col-1,
.iwa-checkout .col2-set .col-2 {
    float: none;
    width: 100%;
    max-width: 100%;
}

/* Force all checkout fields to full width */
.iwa-checkout .form-row,
.iwa-checkout .form-row-first,
.iwa-checkout .form-row-last,
.iwa-checkout .form-row-wide {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Billing heading */
.iwa-checkout .woocommerce-billing-fields h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--iwa-text);
}

/* Labels */
.iwa-checkout .woocommerce-billing-fields label,
.iwa-checkout .woocommerce-checkout label {
    font-size: 14px;
    font-weight: 600;
    color: var(--iwa-text);
    margin-bottom: 6px;
    display: block;
}

.iwa-checkout .woocommerce-billing-fields .required,
.iwa-checkout .woocommerce-checkout .required {
    color: var(--iwa-accent);
}

/* Inputs */
.iwa-checkout .woocommerce-billing-fields input,
.iwa-checkout .woocommerce-billing-fields select,
.iwa-checkout .woocommerce-checkout input[type="text"],
.iwa-checkout .woocommerce-checkout input[type="email"],
.iwa-checkout .woocommerce-checkout input[type="tel"],
.iwa-checkout .woocommerce-checkout input[type="number"],
.iwa-checkout .woocommerce-checkout select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--iwa-border);
    border-radius: var(--iwa-radius);
    font-size: 15px;
    background: var(--iwa-bg-alt);
    color: var(--iwa-text);
    box-sizing: border-box;
}

.iwa-checkout .woocommerce-billing-fields input:focus,
.iwa-checkout .woocommerce-billing-fields select:focus,
.iwa-checkout .woocommerce-checkout input:focus,
.iwa-checkout .woocommerce-checkout select:focus {
    outline: none;
    border-color: var(--iwa-accent);
    box-shadow: 0 0 0 3px rgba(233,30,144,.1);
}

/* ── Order Review ──────────────────────────────────────── */
.iwa-checkout h3#order_review_heading {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--iwa-text);
}

.iwa-checkout #ckeckout-right-col {
    width: 100%;
    float: none;
}

.iwa-checkout .woocommerce-checkout-review-order-table {
    font-size: 14px;
    width: 100%;
}

.iwa-checkout .woocommerce-checkout-review-order-table th,
.iwa-checkout .woocommerce-checkout-review-order-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--iwa-border);
}

.iwa-checkout .woocommerce-checkout-review-order-table .order-total th,
.iwa-checkout .woocommerce-checkout-review-order-table .order-total td {
    font-size: 16px;
    font-weight: 700;
    border-bottom: none;
    padding-top: 12px;
}

/* ── Payment Methods ───────────────────────────────────── */
.iwa-checkout #payment {
    background: transparent;
    padding: 0;
}

.iwa-checkout .wc_payment_methods {
    padding: 0;
    list-style: none;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.iwa-checkout .wc_payment_method {
    padding: 0;
    border: 2px solid var(--iwa-border);
    border-radius: var(--iwa-radius);
    background: var(--iwa-bg);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden;
}

.iwa-checkout .wc_payment_method:has(input:checked) {
    border-color: var(--iwa-accent);
    box-shadow: 0 0 0 3px rgba(233,30,144,.10);
}

/* Hide the default radio circle */
.iwa-checkout .wc_payment_method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Payment label = card content */
.iwa-checkout .wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--iwa-text);
    line-height: 1.3;
    margin: 0;
}

/* Payment icon */
.iwa-checkout .wc_payment_method label::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: var(--iwa-bg-alt);
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: .65;
    transition: opacity .2s;
}

.iwa-checkout .wc_payment_method:has(input:checked) label::before {
    opacity: 1;
    background-color: rgba(233,30,144,.08);
}

/* Default icon (credit card) */
.iwa-checkout .wc_payment_method label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
}

/* Wallet icon */
.iwa-checkout .wc_payment_method[class*="wallet"] label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e91e90' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12V7H5a2 2 0 0 1 0-4h14v4'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h16v-5'/%3E%3Cpath d='M18 12a2 2 0 0 0 0 4h4v-4z'/%3E%3C/svg%3E");
}

/* COD / Cash icon */
.iwa-checkout .wc_payment_method[class*="cod"] label::before,
.iwa-checkout .wc_payment_method[class*="cash"] label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cline x1='6' y1='12' x2='6.01' y2='12'/%3E%3Cline x1='18' y1='12' x2='18.01' y2='12'/%3E%3C/svg%3E");
}

/* MultiSafePay */
.iwa-checkout .wc_payment_method[class*="multisafepay"] label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
}

/* CCV */
.iwa-checkout .wc_payment_method[class*="ccv"] label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3Cpath d='M6 14h.01M10 14h4'/%3E%3C/svg%3E");
}

/* Ingenico / Ogone */
.iwa-checkout .wc_payment_method[class*="ingenico"] label::before,
.iwa-checkout .wc_payment_method[class*="ogone"] label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3Ccircle cx='16' cy='15' r='1'/%3E%3C/svg%3E");
}

/* Stripe / Apple Pay */
.iwa-checkout .wc_payment_method[class*="stripe"] label::before,
.iwa-checkout .wc_payment_method[class*="apple"] label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

/* BACS / bank transfer */
.iwa-checkout .wc_payment_method[class*="bacs"] label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12V7H5a2 2 0 0 1 0-4h14v4'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h16v-5'/%3E%3Cpath d='M18 12a2 2 0 0 0 0 4h4v-4z'/%3E%3C/svg%3E");
}

/* Payment description box */
.iwa-checkout .wc_payment_method .payment_box {
    display: none;
    padding: 0 16px 14px 72px;
    font-size: 12px;
    color: var(--iwa-text-secondary);
    line-height: 1.4;
}

.iwa-checkout .wc_payment_method:has(input:checked) .payment_box {
    display: block;
}

/* ── Place Order Button ────────────────────────────────── */
.iwa-checkout .form-row.place-order {
    padding: 0;
    margin: 0;
}

.iwa-checkout #place_order {
    width: 100%;
    padding: 16px 24px;
    background: var(--iwa-gradient);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: var(--iwa-btn-radius);
    cursor: pointer;
    margin-top: 16px;
    letter-spacing: .3px;
}

.iwa-checkout #place_order:active {
    opacity: .9;
    transform: scale(.98);
}

/* Terms / privacy */
.iwa-checkout .woocommerce-terms-and-conditions-wrapper {
    font-size: 12px;
    color: var(--iwa-text-secondary);
    margin-top: 12px;
}

.iwa-checkout .woocommerce-terms-and-conditions-wrapper a {
    color: var(--iwa-accent);
}

/* ── Order confirmed ───────────────────────────────────── */
.iwa-page-confirmed {
    padding-top: 0 !important;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 56px);
}

/* Hero image band */
.iwa-confirmed-hero {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 28vh;
    overflow: visible;
}

.iwa-confirmed-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    overflow: hidden;
}

/* Green check — overlapping bottom of hero */
.iwa-confirmed-hero .iwa-confirmed-check {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
}

.iwa-confirmed-hero .iwa-confirmed-check svg {
    width: 56px;
    height: 56px;
}

/* Check only (no image) */
.iwa-confirmed-check-only {
    text-align: center;
    padding: 48px 0 0;
}

.iwa-confirmed-check-only svg {
    width: 64px;
    height: 64px;
}

/* Content */
.iwa-confirmed-content {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
    padding: 40px 24px 24px;
    background: var(--iwa-bg);
}

.iwa-confirmed-hero + .iwa-confirmed-content {
    padding-top: 44px; /* extra room for overlapping check */
}

.iwa-confirmed-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--iwa-text);
}

.iwa-confirmed-subtitle {
    font-size: 15px;
    color: var(--iwa-text-secondary);
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Action buttons (View Order, Call) */
.iwa-confirmed-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 12px;
    padding: 14px 20px;
    background: var(--iwa-bg);
    border: 1.5px solid var(--iwa-border);
    border-radius: var(--iwa-btn-radius);
    color: var(--iwa-text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}

.iwa-confirmed-btn:hover,
.iwa-confirmed-btn:active {
    background: var(--iwa-bg-alt);
}

.iwa-confirmed-btn svg {
    flex-shrink: 0;
    color: var(--iwa-text-secondary);
}

/* Footer text */
.iwa-confirmed-footer-text {
    font-size: 13px;
    color: var(--iwa-text-secondary);
    margin: 16px auto 0;
    max-width: 280px;
    line-height: 1.5;
    text-align: center;
}

/* Bottom sticky button */
.iwa-confirmed-bottom {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    text-align: center;
}

/* ── View Order page ───────────────────────────────────── */
.iwa-page-view-order {
    padding-top: 0 !important;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 56px);
}

.iwa-page-view-order .iwa-container {
    flex: 1;
    padding: 16px;
}

.iwa-vo-card {
    background: var(--iwa-bg);
    border-bottom: 1px solid var(--iwa-border);
    padding: 20px 0;
}

.iwa-vo-card:first-child {
    padding-top: 12px;
}

.iwa-vo-section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--iwa-text);
}

.iwa-vo-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4px 0;
    font-size: 14px;
    color: var(--iwa-text-secondary);
    gap: 12px;
}

.iwa-vo-row span:last-child {
    text-align: right;
    white-space: nowrap;
}

.iwa-vo-row-bold {
    font-weight: 700;
    color: var(--iwa-text);
    margin-top: 4px;
}

.iwa-vo-row-sub {
    padding-left: 16px;
    font-size: 13px;
    color: var(--iwa-text-secondary);
    opacity: .8;
}

.iwa-vo-separator {
    height: 1px;
    background: var(--iwa-border);
    margin: 14px 0;
}

.iwa-vo-customer-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--iwa-text);
}

.iwa-vo-customer-info {
    font-size: 14px;
    color: var(--iwa-text-secondary);
    margin: 2px 0;
}

.iwa-vo-receipt-note {
    font-size: 13px;
    color: var(--iwa-text-secondary);
    text-align: center;
    margin: 24px 0 16px;
    line-height: 1.5;
}

.iwa-vo-save-btn {
    margin: 0 auto 16px !important;
}

/* QR Code block */
.iwa-vo-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--iwa-border);
}

.iwa-vo-qr-code {
    width: 72px;
    height: 72px;
    padding: 6px;
    border-radius: 10px;
    border: 2px solid;
}

.iwa-vo-qr--paid .iwa-vo-qr-code {
    border-color: #22c55e;
    background: #f0fdf4;
}

/* ===================================================================
   Order Tracking Page
   =================================================================== */

.iwa-page-tracking {
    padding: 24px 16px;
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.iwa-page-tracking .iwa-container {
    width: 100%;
    max-width: 480px;
}

/* Order info */
.iwa-track-info {
    text-align: center;
    margin-bottom: 40px;
}

.iwa-track-order-num {
    font-size: 15px;
    font-weight: 600;
    color: var(--iwa-text);
    margin: 0 0 4px;
}

.iwa-track-establishment {
    font-size: 13px;
    color: var(--iwa-text-light);
    margin: 0;
}

/* Progress tracker */
.iwa-track-progress {
    padding: 0 8px;
    margin-bottom: 40px;
}

.iwa-track-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.iwa-track-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    width: 72px;
}

.iwa-track-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--iwa-bg-card, #f3f4f6);
    color: #9ca3af;
    border: 2px solid #e5e7eb;
    transition: all .4s ease;
    position: relative;
    z-index: 1;
}

.iwa-track-step.active .iwa-track-dot {
    background: var(--iwa-accent, #22c55e);
    color: #fff;
    border-color: var(--iwa-accent, #22c55e);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .15);
}

.iwa-track-step.current .iwa-track-dot {
    animation: iwa-pulse-dot 2s ease-in-out infinite;
}

@keyframes iwa-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, .25); }
}

.iwa-track-label {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    text-align: center;
    line-height: 1.2;
    transition: color .4s ease;
}

.iwa-track-step.active .iwa-track-label {
    color: var(--iwa-text);
    font-weight: 600;
}

/* Connector lines */
.iwa-track-line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 20px; /* center on dot (40px / 2) */
    position: relative;
    min-width: 24px;
}

.iwa-track-line-fill {
    height: 100%;
    width: 0%;
    background: var(--iwa-accent, #22c55e);
    border-radius: 2px;
    transition: width .6s ease;
}

/* Status message */
.iwa-track-message {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 16px;
    background: var(--iwa-bg-card, #fff);
    border-radius: 12px;
    border: 1px solid var(--iwa-border, #e5e7eb);
}

.iwa-track-message-icon {
    font-size: 36px;
    margin-bottom: 8px;
    line-height: 1;
}

.iwa-track-message-text {
    font-size: 15px;
    color: var(--iwa-text);
    margin: 0;
    font-weight: 500;
}

/* Buttons */
.iwa-track-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.iwa-spinning svg {
    animation: iwa-spin .8s linear infinite;
}
@keyframes iwa-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.iwa-vo-qr--unpaid .iwa-vo-qr-code {
    border-color: #ef4444;
    background: #fef2f2;
}

.iwa-vo-qr-code svg,
.iwa-vo-qr-code .qr-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.iwa-vo-qr-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
}

.iwa-vo-qr--paid .iwa-vo-qr-status {
    color: #22c55e;
}

.iwa-vo-qr--unpaid .iwa-vo-qr-status {
    color: #ef4444;
}

.iwa-vo-qr-number {
    font-size: 13px;
    color: var(--iwa-text-secondary);
    margin-top: 4px;
}

/* ── Toast ─────────────────────────────────────────────── */
.iwa-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--iwa-text);
    color: var(--iwa-bg);
    padding: 10px 20px;
    border-radius: var(--iwa-btn-radius);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
    white-space: nowrap;
}

.iwa-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Unavailable items modal ───────────────────────────── */
.iwa-modal-unavailable {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.iwa-modal-unavailable-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.iwa-modal-unavailable-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
    animation: iwa-modal-pop .25s ease;
}

@keyframes iwa-modal-pop {
    from { transform: scale(.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.iwa-modal-unavailable-title {
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
    margin: 0 0 16px;
}

.iwa-modal-unavailable-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.iwa-modal-unavailable-list li {
    font-size: 15px;
    font-weight: 600;
    color: var(--iwa-text, #1a1a1a);
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.iwa-modal-unavailable-list li:last-child {
    border-bottom: none;
}

.iwa-modal-unavailable-msg {
    font-size: 14px;
    color: var(--iwa-text-secondary, #666);
    margin: 0 0 20px;
    line-height: 1.5;
}

.iwa-modal-unavailable-close {
    width: 100%;
}

/* ── Confirm modal (dashboard) ──────────────────────────── */
.iwa-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.iwa-confirm-modal[hidden] { display: none; }
.iwa-confirm-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}
.iwa-confirm-modal-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
    animation: iwa-modal-pop .25s ease;
}
.iwa-confirm-modal-msg {
    font-size: 17px;
    font-weight: 600;
    color: var(--iwa-text, #1a1a1a);
    margin: 0 0 24px;
    line-height: 1.4;
}
.iwa-confirm-modal-actions {
    display: flex;
    gap: 12px;
}
.iwa-confirm-modal-actions .iwa-btn-secondary,
.iwa-confirm-modal-actions .iwa-btn-danger {
    flex: 1;
}

/* ── Group help button ───────────────────────────────── */
.iwa-landing-cta-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}
.iwa-landing-cta-row .iwa-landing-cta {
    flex: 1;
    min-width: 0;
}
.iwa-group-help-btn {
    width: 48px;
    min-width: 48px;
    border: 2px solid var(--iwa-accent, #e74c3c);
    background: transparent;
    color: var(--iwa-accent, #e74c3c);
    border-radius: 14px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}
.iwa-group-help-btn:hover,
.iwa-group-help-btn:focus-visible {
    background: var(--iwa-accent, #e74c3c);
    color: #fff;
}

/* ── Group help modal ───────────────────────────────── */
#iwa-group-help-modal {
    align-items: flex-start;
    padding: 100px 16px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.iwa-group-help-box {
    max-width: 400px;
    text-align: left;
    flex-shrink: 0;
}
.iwa-group-help-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--iwa-text, #1a1a1a);
    margin: 0 0 4px;
    text-align: center;
    line-height: 1.3;
}
.iwa-group-help-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #888;
    margin: 0 0 12px;
    text-align: center;
}
.iwa-group-help-principle {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 0;
    text-align: center;
}
.iwa-group-help-sep {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 16px 0;
}
.iwa-group-help-steps {
    list-style: none;
    counter-reset: help-step;
    padding: 0;
    margin: 0 0 24px;
}
.iwa-group-help-steps li {
    counter-increment: help-step;
    display: flex;
    flex-direction: column;
    padding: 10px 0 10px 40px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}
.iwa-group-help-steps li:last-child {
    border-bottom: none;
}
.iwa-group-help-steps li::before {
    content: counter(help-step);
    position: absolute;
    left: 0;
    top: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--iwa-accent, #e74c3c);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.iwa-group-help-steps li strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--iwa-text, #1a1a1a);
    margin-bottom: 2px;
}
.iwa-group-help-steps li span {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}
.iwa-group-help-box .iwa-confirm-modal-actions {
    justify-content: center;
}
.iwa-group-help-box .iwa-btn-primary {
    min-width: 140px;
}

/* ── Added-to-cart modal ───────────────────────────────── */
#iwa-added-modal {
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#iwa-added-modal .iwa-modal-overlay {
    display: none;
}

#iwa-added-modal .iwa-added-modal-content {
    position: relative;
    z-index: 1;
    background: var(--iwa-bg);
    border-radius: var(--iwa-radius);
    padding: 40px 32px;
    text-align: center;
    max-width: 280px;
    width: 85%;
    margin: 0;
    flex: none;
    display: block;
    overflow: visible;
    pointer-events: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .15);
    animation: iwa-modal-pop .3s ease;
    margin-top: 0;
}

@keyframes iwa-modal-pop {
    from { transform: scale(.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.iwa-added-icon {
    margin-bottom: 16px;
}

.iwa-added-icon svg {
    width: 64px;
    height: 64px;
}

.iwa-added-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.iwa-added-text strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--iwa-text);
}

.iwa-added-text span {
    font-size: 15px;
    color: var(--iwa-text-secondary);
}

/* ── Search modal ──────────────────────────────────────── */
.iwa-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
}

.iwa-modal[hidden] {
    display: none;
}

.iwa-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}

.iwa-modal-content {
    position: relative;
    z-index: 1;
    background: var(--iwa-bg);
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 56px;
    border-radius: var(--iwa-radius) var(--iwa-radius) 0 0;
    overflow: hidden;
}

.iwa-search-bar {
    display: flex;
    padding: 12px 16px;
    gap: 8px;
    border-bottom: 1px solid var(--iwa-border);
}

.iwa-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: var(--iwa-text);
}

.iwa-search-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--iwa-bg-alt);
    border-radius: 50%;
    font-size: 20px;
    color: var(--iwa-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iwa-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

/* ── Empty state ───────────────────────────────────────── */
.iwa-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--iwa-text-secondary);
}

.iwa-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: .5;
}

.iwa-empty-text {
    font-size: 16px;
}

/* ── Slide-in-right page animation ──────────────────────── */
@keyframes iwa-slide-in-right {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

html:has(body.iwa-anim-slide) {
    overflow-x: hidden;
}

body.iwa-anim-slide {
    animation: iwa-slide-in-right .33s ease-out;
}

/* Modal / dialog slide-in override when animation enabled */
body.iwa-anim-slide .iwa-modal-unavailable-box,
body.iwa-anim-slide .iwa-confirm-modal-box,
body.iwa-anim-slide #iwa-added-modal .iwa-added-modal-content,
body.iwa-anim-slide .iwa-group-share-modal-box {
    animation: iwa-slide-in-right .33s ease-out;
}

/* ── Fly-to-cart animation ─────────────────────────────── */
.iwa-fly-clone {
    box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
    will-change: transform, opacity, border-radius;
}

@keyframes iwa-cart-bump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(.9); }
    100% { transform: scale(1); }
}

.iwa-cart-bump {
    animation: iwa-cart-bump .35s ease;
}

/* ── Utility ───────────────────────────────────────────── */
.iwa-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Responsive tweaks (tablet+) ───────────────────────── */
@media (min-width: 600px) {
    .iwa-categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .iwa-products {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .iwa-product-hero {
        max-height: 400px;
    }
}

/* ── Group Dashboard ───────────────────────────────────── */

.iwa-page-dashboard {
    padding: 16px;
    padding-bottom: 120px;
}

.iwa-dash-status {
    text-align: center;
    margin-bottom: 12px;
}

.iwa-dash-status-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.iwa-dash-status-open {
    background: #dcfce7;
    color: #166534;
}

.iwa-dash-status-completed {
    background: #f3f4f6;
    color: #6b7280;
}

.iwa-dash-table {
    text-align: center;
    font-size: 14px;
    color: var(--iwa-text-secondary);
    margin-bottom: 20px;
}

.iwa-dash-section {
    margin-bottom: 24px;
}

.iwa-dash-section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--iwa-border, #e5e7eb);
}

/* Members list */
.iwa-dash-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--iwa-bg-alt, #f9fafb);
    border-radius: var(--iwa-radius, 10px);
    margin-bottom: 8px;
}

.iwa-dash-member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.iwa-dash-member-name {
    font-weight: 600;
    font-size: 15px;
}

.iwa-dash-member-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.iwa-dash-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.iwa-dash-tag-me {
    background: #e0e7ff;
    color: #3730a3;
}

.iwa-dash-tag-owner {
    background: #fef3c7;
    color: #92400e;
}

.iwa-dash-tag-paid {
    background: #dcfce7;
    color: #166534;
}

.iwa-dash-member-order {
    font-size: 12px;
    color: var(--iwa-text-secondary);
    white-space: nowrap;
}

.iwa-dash-member-no-order {
    color: #9ca3af;
    font-style: italic;
}

/* Rounds */
.iwa-dash-round {
    padding: 12px;
    background: var(--iwa-bg-alt, #f9fafb);
    border-radius: var(--iwa-radius, 10px);
    margin-bottom: 8px;
    border-left: 4px solid var(--iwa-border, #e5e7eb);
}

.iwa-dash-round-sent {
    border-left-color: var(--iwa-success, #22c55e);
}

.iwa-dash-round-pending {
    border-left-color: var(--iwa-accent, #e91e90);
}

.iwa-dash-round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.iwa-dash-round-label {
    font-weight: 700;
    font-size: 14px;
}

.iwa-dash-round-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
}

.iwa-dash-round-sent .iwa-dash-round-status {
    background: #dcfce7;
    color: #166534;
}

.iwa-dash-round-pending .iwa-dash-round-status {
    background: #fef3c7;
    color: #92400e;
}

.iwa-dash-round-details {
    font-size: 13px;
    color: var(--iwa-text-secondary);
}

/* Owner actions */
.iwa-dash-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.iwa-btn-secondary {
    display: block;
    width: 100%;
    padding: 14px;
    border: 2px solid var(--iwa-accent, #e91e90);
    background: transparent;
    color: var(--iwa-accent, #e91e90);
    border-radius: var(--iwa-btn-radius, 25px);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background .2s, color .2s;
}

.iwa-btn-secondary:hover {
    background: var(--iwa-accent, #e91e90);
    color: #fff;
}

.iwa-btn-danger {
    display: block;
    width: 100%;
    padding: 14px;
    border: 2px solid #ef4444;
    background: transparent;
    color: #ef4444;
    border-radius: var(--iwa-btn-radius, 25px);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background .2s, color .2s;
}

.iwa-btn-danger:hover {
    background: #ef4444;
    color: #fff;
}

.iwa-dash-order-btn {
    margin-top: 8px;
}

/* Round choice on landing (returning group member) */
.iwa-group-dashboard-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--iwa-accent, #e91e90);
    font-weight: 600;
    font-size: 14px;
    text-decoration: underline;
}

/* ── Filter bottom-sheet ───────────────────────────────── */

.iwa-filter-trigger {
    position: relative;
}

.iwa-filter-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--iwa-accent, #e91e90);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
}

.iwa-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.iwa-filter-sheet[hidden] {
    display: none;
}

.iwa-filter-sheet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    transition: opacity .3s ease;
}

.iwa-filter-sheet.open .iwa-filter-sheet-overlay {
    opacity: 1;
}

.iwa-filter-sheet-panel {
    position: relative;
    background: var(--iwa-bg, #fff);
    border-radius: var(--iwa-radius, 16px) var(--iwa-radius, 16px) 0 0;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform .3s ease;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .12);
}

.iwa-filter-sheet.open .iwa-filter-sheet-panel {
    transform: translateY(0);
}

.iwa-filter-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--iwa-border, #eee);
}

.iwa-filter-sheet-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--iwa-text, #1a1a1a);
}

.iwa-filter-sheet-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--iwa-bg-alt, #f5f5f5);
    border-radius: 50%;
    font-size: 22px;
    color: var(--iwa-text, #1a1a1a);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iwa-filter-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.iwa-filter-section {
    margin-bottom: 20px;
}

.iwa-filter-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--iwa-text, #1a1a1a);
    margin: 0 0 4px;
}

.iwa-filter-section-desc {
    font-size: 12px;
    color: var(--iwa-text-secondary, #888);
    margin: 0 0 10px;
}

.iwa-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.iwa-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--iwa-border, #ddd);
    background: var(--iwa-bg, #fff);
    color: var(--iwa-text, #1a1a1a);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.iwa-filter-pill-icon {
    display: flex;
    align-items: center;
}

.iwa-filter-pill-icon img,
.iwa-filter-pill-icon svg {
    width: 20px;
    height: 20px;
}

/* Dietary pills — green when active */
.iwa-filter-pill--dietary.active {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

/* Allergen pills — red when active */
.iwa-filter-pill--allergen.active {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.iwa-filter-sheet-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid var(--iwa-border, #eee);
    gap: 12px;
}

.iwa-filter-clear {
    background: none;
    border: none;
    color: var(--iwa-text-secondary, #888);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 4px;
    text-decoration: underline;
}

.iwa-filter-apply {
    flex: 1;
    max-width: 200px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--iwa-radius, 12px);
    background: var(--iwa-accent, #e91e90);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

/* =============================================
   VISU 2 — Styles
   ============================================= */

/* Force all gradient buttons to use the single accent colour */
.iwa-visu2 {
    --iwa-gradient: var(--iwa-accent);
}

.iwa-visu2 .iwa-page--has-bottomnav {
    padding-bottom: 80px;
}

/* ---- Category Bar ---- */
/* Sticky nav wrapper: catbar + subcategories stay visible */
.iwa-sticky-nav {
    position: sticky;
    top: 56px;
    z-index: 90;
    background: var(--iwa-bg, #fff);
}
.iwa-catbar {
    z-index: 90;
    background: var(--iwa-bg, #fff);
    border-bottom: 1px solid rgba(0,0,0,.08);
    overflow: hidden;
}
.iwa-catbar-scroll {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.iwa-catbar-scroll::-webkit-scrollbar {
    display: none;
}
/* V1 — image top, name bottom */
.iwa-catbar--v1 .iwa-catbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 64px;
    padding: 6px 8px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--iwa-text, #333);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}
.iwa-catbar--v1 .iwa-catbar-item.active {
    background: var(--iwa-accent, #e91e90);
    color: #fff;
}
.iwa-catbar--v1 .iwa-catbar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
/* V2 — image left, name right (pill/chip) */
.iwa-catbar--v2 .iwa-catbar-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 6px 6px;
    border-radius: 50px;
    border: 1.5px solid rgba(0,0,0,.12);
    text-decoration: none;
    color: var(--iwa-text, #333);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s;
    flex-shrink: 0;
}
.iwa-catbar--v2 .iwa-catbar-item.active {
    background: var(--iwa-accent, #e91e90);
    color: #fff;
    border-color: var(--iwa-accent, #e91e90);
}
.iwa-catbar--v2 .iwa-catbar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Category count badge in catbar */
.iwa-catbar-count {
    font-size: 9px;
    font-weight: 700;
    opacity: .6;
    white-space: nowrap;
}
.iwa-catbar--v1 .iwa-catbar-count {
    display: block;
    line-height: 1;
}
.iwa-catbar--v2 .iwa-catbar-count {
    margin-left: 2px;
}
.iwa-catbar-item.active .iwa-catbar-count {
    opacity: .85;
}


/* Active category description (below catbar) */
.iwa-catbar-desc {
    padding: 4px 16px 6px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.iwa-catbar-desc p {
    margin: 0;
    font-size: 13px;
    font-style: italic;
    color: #888;
    line-height: 1.3;
}

/* ---- Product Cards — V1 (Horizontal) ---- */
.iwa-products--v1,
.iwa-products--v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}
.iwa-product-card--v1 {
    display: flex;
    flex-direction: column;
    background: var(--iwa-card-bg, #fff);
    border-radius: var(--iwa-radius, 12px);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}
.iwa-visu2 .iwa-container {
    padding: 5px;
}
.iwa-product-card-main {
    display: flex;
    gap: 5px;
    padding: 5px 0 5px 5px;
    min-height: 0;
}
.iwa-product-card--v1 .iwa-product-img-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}
.iwa-product-card--v1 .iwa-product-img-link {
    flex-shrink: 0;
    display: block;
    line-height: 0;
}
.iwa-product-card--v1 .iwa-product-img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
}
.iwa-product-allergens-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 3px;
    padding: 0 5px 5px;
    overflow: hidden;
}
.iwa-product-allergens-row > *:nth-child(n+9) {
    display: none;
}
.iwa-product-card--v1 .iwa-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: 0;
}
.iwa-product-card--v1 .iwa-product-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}
.iwa-product-card--v1 .iwa-product-name a {
    color: inherit;
    text-decoration: none;
}
.iwa-product-card--v1 .iwa-product-desc {
    font-size: 12px;
    color: #777;
    margin: 2px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}
.iwa-product-card--v1 .iwa-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 4px;
}
.iwa-product-card--v1 .iwa-inline-cart {
    margin-left: -5px;
}
.iwa-product-card--v1 .iwa-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--iwa-accent, #e91e90);
}

/* V1 — Vertical ORDER button (right strip, bottom-to-top) */
.iwa-v1-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 12px 6px;
    border: none;
    border-radius: 10px 0 0 10px;
    background: var(--iwa-accent, #e91e90);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    cursor: pointer;
    text-decoration: none;
    min-width: 36px;
    flex-shrink: 0;
    transition: opacity .2s;
    -webkit-tap-highlight-color: transparent;
}
.iwa-v1-order-btn:hover {
    opacity: .85;
}
.iwa-v1-order-btn--link {
    background: var(--iwa-card-bg, #f5f5f5);
    color: var(--iwa-text, #333);
    border-left: 1.5px solid rgba(0,0,0,.08);
}

/* ---- Product Cards — V2 (Compact) ---- */
.iwa-product-card--v2 {
    display: flex;
    gap: 10px;
    background: var(--iwa-card-bg, #fff);
    border-radius: var(--iwa-radius, 12px);
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    text-decoration: none;
    color: inherit;
}
.iwa-product-card--v2 .iwa-product-img-link {
    flex-shrink: 0;
}
.iwa-product-card--v2 .iwa-product-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}
.iwa-product-card--v2 .iwa-product-info {
    flex: 1;
    min-width: 0;
}
.iwa-product-card--v2 .iwa-product-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.iwa-product-card--v2 .iwa-product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--iwa-accent, #e91e90);
}
.iwa-product-card--v2 .iwa-product-desc {
    font-size: 12px;
    color: #666;
    margin: 4px 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.iwa-inline-order-btn--v2 {
    display: block;
    width: 100%;
}

/* ---- Product Cards — V3 (Classic) ---- */
.iwa-products--v3 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
}
.iwa-product-card--v3 {
    display: flex;
    gap: 12px;
    background: var(--iwa-card-bg, #fff);
    border-radius: var(--iwa-radius, 12px);
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    text-decoration: none;
    color: inherit;
}
.iwa-product-card--v3 .iwa-product-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.iwa-product-card--v3 .iwa-product-info {
    flex: 1;
    min-width: 0;
}
.iwa-product-card--v3 .iwa-product-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}
.iwa-product-card--v3 .iwa-product-qty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--iwa-accent, #e91e90);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
    padding: 0 5px;
}
.iwa-product-card--v3 .iwa-product-desc {
    font-size: 12px;
    color: #777;
    margin: 3px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.iwa-product-card--v3 .iwa-product-bottom {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.iwa-product-card--v3 .iwa-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--iwa-accent, #e91e90);
}

/* ---- Inline Cart Controls ---- */
.iwa-inline-qty-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(0,0,0,.06);
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    color: var(--iwa-text, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}
.iwa-inline-qty-val {
    min-width: 24px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
}
.iwa-inline-cart {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: none;
    border-radius: 0;
    overflow: visible;
}
.iwa-inline-order-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: var(--iwa-accent, #e91e90);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s;
    margin-left: 8px;
    min-height: 40px;
}
.iwa-inline-order-btn:hover {
    opacity: .85;
}
.iwa-inline-order-link {
    background: var(--iwa-card-bg, #f5f5f5);
    color: var(--iwa-text, #333);
    border: 1.5px solid rgba(0,0,0,.12);
}

/* ---- Bottom Navigation Bar ---- */
.iwa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    background: var(--iwa-bg, #fff);
    border-top: 1px solid rgba(0,0,0,.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
    max-width: 600px;
    margin: 0 auto;
}
.iwa-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #999;
    font-size: 10px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 12px;
    position: relative;
    transition: color .2s;
}
.iwa-bottom-nav-item.active,
.iwa-bottom-nav-item:hover {
    color: var(--iwa-accent, #e91e90);
}
.iwa-bottom-nav-badge {
    position: absolute;
    top: 0;
    right: 2px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--iwa-accent, #e91e90);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ---- Menu Modal ---- */
.iwa-menu-modal-content {
    max-height: 80vh;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 600px;
    margin: 0 auto;
    background: var(--iwa-bg, #fff);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: iwa-slide-up .25s ease-out;
}
@keyframes iwa-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.iwa-menu-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.iwa-menu-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.iwa-menu-modal-close {
    border: none;
    background: none;
    font-size: 26px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}
.iwa-menu-modal-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--iwa-text, #333);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,.04);
    transition: background .15s;
}
.iwa-menu-modal-item:hover {
    background: rgba(0,0,0,.03);
}
.iwa-menu-modal-item.active {
    color: var(--iwa-accent, #e91e90);
    font-weight: 700;
}
.iwa-menu-modal-child {
    padding-left: 40px;
    font-size: 14px;
}
.iwa-menu-modal-desc {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
}
.iwa-menu-modal-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--iwa-text-secondary, #888);
    white-space: nowrap;
}
.iwa-menu-modal-item.active .iwa-menu-modal-count {
    color: var(--iwa-accent, #e91e90);
}

/* ---- Product Detail — V2 ---- */
.iwa-product-detail--v2 {
    padding-top: 0 !important;
}
.iwa-product-hero-wrap {
    position: relative;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
}
.iwa-product-hero-wrap .iwa-product-hero {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
.iwa-product-hero-wrap--empty {
    height: 60px;
    background: var(--iwa-header-bg, #333);
}
.iwa-product-hero-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 22px;
    line-height: 36px;
    text-align: center;
    text-decoration: none;
    z-index: 10;
    transition: background .2s;
}
.iwa-product-hero-close:hover {
    background: rgba(0,0,0,.65);
}
.iwa-product-detail--v2 .iwa-product-detail-body {
    padding: 16px;
}
.iwa-product-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.iwa-product-detail-price-badge {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--iwa-accent, #e91e90);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

/* ---- Cart — V2 qty controls ---- */
.iwa-visu2 .iwa-cart-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    align-items: flex-start;
}
.iwa-visu2 .iwa-cart-item-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.iwa-visu2 .iwa-cart-item-info {
    flex: 1;
    min-width: 0;
}
.iwa-visu2 .iwa-cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px;
}
.iwa-visu2 .iwa-cart-item-addon {
    margin: 0 0 4px;
    color: #888;
}
.iwa-cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}
.iwa-cart-qty-ctrl {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(0,0,0,.12);
    border-radius: 8px;
    overflow: hidden;
}
.iwa-cart-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--iwa-text, #333);
    padding: 0;
}
.iwa-cart-qty-val {
    width: 28px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}
.iwa-visu2 .iwa-cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--iwa-accent, #e91e90);
    white-space: nowrap;
}

/* ---- Coupon Section ---- */
.iwa-coupon-section {
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid rgba(0,0,0,.06);
}
.iwa-coupon-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
}
.iwa-coupon-form {
    display: flex;
    gap: 8px;
}
.iwa-coupon-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid rgba(0,0,0,.12);
    border-radius: 8px;
    font-size: 14px;
    background: var(--iwa-bg, #fff);
    color: var(--iwa-text, #333);
}
.iwa-coupon-input:focus {
    outline: none;
    border-color: var(--iwa-accent, #e91e90);
}
.iwa-coupon-apply {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: var(--iwa-accent, #e91e90);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.iwa-coupon-applied {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.iwa-coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0,0,0,.06);
    font-size: 12px;
    font-weight: 600;
}
.iwa-coupon-remove {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

/* ---- Cart Discount Row ---- */
.iwa-cart-discount span:last-child {
    color: #27ae60;
}

/* ---- Empty Cart Illustration ---- */
.iwa-empty--cart {
    padding: 60px 20px;
    text-align: center;
}
.iwa-empty-illustration {
    margin-bottom: 20px;
}
.iwa-empty-btn {
    display: inline-flex;
    margin-top: 16px;
}

/* ---- Sticky Bar V2 ---- */
.iwa-sticky-bar--v2 {
    bottom: 60px;
    padding-bottom: 0;
}
.iwa-btn-checkout {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ---- Responsive (min 600px) ---- */
@media (min-width: 600px) {
    .iwa-bottom-nav {
        max-width: 600px;
    }
    .iwa-menu-modal-content {
        max-width: 600px;
    }
    .iwa-product-card--v1 .iwa-product-img {
        width: 120px;
        height: 120px;
    }
}
