.wcpls-shell {
    --wcpls-primary: #118647;
    --wcpls-selected-bg: #effbf5;
    --wcpls-border: #e1e7e5;
    --wcpls-text: #12253b;
    --wcpls-muted: #7b8794;
    --wcpls-bg: #fbfdfc;
    max-width: 1088px;
    margin: 0 auto;
    padding: 14px 18px 34px;
    color: var(--wcpls-text);
    font-family: Inter, "Noto Sans Bengali", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
}
.wcpls-shell * { box-sizing: border-box; }
.wcpls-heading { text-align: center; margin: 0 auto 20px; }
.wcpls-heading h2 { margin: 0 0 4px; font-size: 28px; line-height: 1.25; font-weight: 800; color: #0f2540; }
.wcpls-heading p { margin: 0; color: #728097; font-size: 14px; }
.wcpls-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(330px, .82fr); gap: 30px; align-items: start; }
.wcpls-main-card,
.wcpls-summary-card,
.wcpls-help-card { background: #fff; border: 1px solid var(--wcpls-border); border-radius: 15px; box-shadow: 0 10px 28px rgba(25, 45, 55, .05); }
.wcpls-main-card { padding: 24px 28px 26px; border-color: color-mix(in srgb, var(--wcpls-primary) 18%, #dfe7e4); }
.wcpls-section-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.wcpls-product-list { display: grid; gap: 9px; }
.wcpls-product-card { min-height: 72px; display: grid; grid-template-columns: 26px 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px 10px 11px; border: 1px solid #dfe5e8; border-radius: 13px; background: #fff; cursor: pointer; transition: .18s ease; }
.wcpls-product-card:hover { border-color: color-mix(in srgb, var(--wcpls-primary) 35%, #dfe5e8); }
.wcpls-product-card.is-selected { border-color: var(--wcpls-primary); background: var(--wcpls-selected-bg); }
.wcpls-product-card.is-unavailable { opacity: .55; cursor: not-allowed; }
.wcpls-radio-wrap { display: inline-flex; align-items: center; justify-content: center; }
.wcpls-product-radio,
.wcpls-zone-option input { position: absolute; opacity: 0; pointer-events: none; }
.wcpls-radio-ui { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c9d2dc; background: #fff; display: inline-grid; place-items: center; flex: 0 0 18px; }
.wcpls-product-card.is-selected .wcpls-radio-ui,
.wcpls-zone-option.is-selected .wcpls-radio-ui { border-color: var(--wcpls-primary); background: var(--wcpls-primary); }
.wcpls-product-card.is-selected .wcpls-radio-ui::after,
.wcpls-zone-option.is-selected .wcpls-radio-ui::after { content: "✓"; color: #fff; font-weight: 900; font-size: 11px; line-height: 1; }
.wcpls-product-thumb { width: 52px; height: 52px; border-radius: 10px; border: 1px solid #e7ecef; background: #fff; display: grid; place-items: center; overflow: hidden; }
.wcpls-product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.wcpls-product-name-wrap { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wcpls-product-name { font-size: 14px; font-weight: 700; line-height: 1.35; color: #0d2945; }
.wcpls-stock-note { font-size: 11px; color: #b34545; }
.wcpls-product-price { justify-self: end; color: var(--wcpls-primary); font-weight: 800; white-space: nowrap; font-size: 15px; }
.wcpls-customer-fields { margin-top: 18px; }
.wcpls-field-label { display: block; margin: 13px 0 7px; font-size: 13px; font-weight: 700; }
.wcpls-field-label span { color: #e23939; }
.wcpls-customer-fields > input { width: 100%; height: 42px; border: 1px solid #d9e0e6; border-radius: 11px; padding: 0 14px; font: inherit; font-size: 13px; color: var(--wcpls-text); background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
.wcpls-customer-fields > input:focus { border-color: var(--wcpls-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wcpls-primary) 10%, transparent); }
.wcpls-customer-fields input::placeholder { color: #a3aebd; }
.wcpls-zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.wcpls-zone-option { min-height: 54px; display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; border: 1px solid #dfe5e8; border-radius: 12px; background: #fff; padding: 8px 10px; cursor: pointer; transition: .18s ease; }
.wcpls-zone-option.is-selected { border-color: color-mix(in srgb, var(--wcpls-primary) 42%, #dfe5e8); background: #fafdfb; }
.wcpls-zone-copy { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.wcpls-zone-copy strong { font-size: 12px; color: #15304b; }
.wcpls-zone-copy small { margin-top: 4px; font-size: 10px; color: #95a0ae; }
.wcpls-zone-price { align-self: stretch; min-width: 48px; display: grid; place-items: center; padding-left: 10px; border-left: 1px solid #e6eaee; color: #50627a; font-weight: 700; font-size: 12px; }
.wcpls-sidebar { display: grid; gap: 15px; }
.wcpls-summary-card { padding: 18px 18px 16px; }
.wcpls-summary-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.wcpls-summary-product { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; background: #f8fafb; border-radius: 10px; }
.wcpls-summary-image { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: #fff; }
.wcpls-summary-product-name { min-width: 0; font-size: 12px; color: #566477; line-height: 1.35; }
.wcpls-summary-product-price { color: #24384d; font-weight: 700; font-size: 12px; white-space: nowrap; }
.wcpls-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 10px; border-bottom: 1px solid #edf0f2; color: #7a8796; font-size: 12px; }
.wcpls-summary-total-row { border-bottom: 0; padding-top: 13px; padding-bottom: 13px; color: #12273f; font-size: 16px; }
.wcpls-summary-total { color: var(--wcpls-primary); font-size: 22px; }
.wcpls-submit-button { width: 100%; min-height: 52px; border: 3px solid color-mix(in srgb, var(--wcpls-primary) 28%, #dfe7e4); border-radius: 12px; background: var(--wcpls-primary); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: transform .15s ease, opacity .15s ease, filter .15s ease; }
.wcpls-submit-button:hover { filter: brightness(.96); transform: translateY(-1px); }
.wcpls-submit-button:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.wcpls-summary-note { margin: 8px 0 0; text-align: center; color: #8b96a2; font-size: 10.5px; line-height: 1.45; }
.wcpls-help-card { background: color-mix(in srgb, var(--wcpls-selected-bg) 68%, #fff); border-color: color-mix(in srgb, var(--wcpls-primary) 15%, #e3ece8); padding: 14px 18px; }
.wcpls-help-line { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; padding: 5px 0; }
.wcpls-help-line > div { display: flex; flex-direction: column; gap: 1px; }
.wcpls-help-line strong { font-size: 12px; color: #18384d; }
.wcpls-help-line span { font-size: 10.5px; color: #687a86; line-height: 1.4; }
.wcpls-message,
.wcpls-sidebar-message { display: none; margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 12px; line-height: 1.45; }
.wcpls-message.is-error,
.wcpls-sidebar-message.is-error { display: block; color: #8d2525; background: #fff1f1; border: 1px solid #ffd0d0; }
.wcpls-message.is-success,
.wcpls-sidebar-message.is-success { display: block; color: #126139; background: #edf9f2; border: 1px solid #c7ecd6; }
.wcpls-admin-warning { padding: 14px 16px; border-left: 4px solid #dba617; background: #fff8df; }

@media (max-width: 900px) {
    .wcpls-shell { max-width: 760px; }
    .wcpls-grid { grid-template-columns: 1fr; gap: 18px; }
    .wcpls-sidebar { grid-template-columns: 1fr; }
    .wcpls-summary-card { order: 1; }
}

@media (max-width: 600px) {
    .wcpls-shell { padding: 10px 10px 26px; }
    .wcpls-heading { margin-bottom: 14px; }
    .wcpls-heading h2 { font-size: 22px; }
    .wcpls-heading p { font-size: 12px; }
    .wcpls-main-card { padding: 15px 12px 18px; border-radius: 13px; }
    .wcpls-product-card { min-height: 68px; grid-template-columns: 24px 46px minmax(0,1fr); gap: 8px; padding: 8px 10px; }
    .wcpls-product-price { grid-column: 3; justify-self: start; margin-top: -8px; font-size: 13px; }
    .wcpls-product-thumb { width: 46px; height: 46px; }
    .wcpls-product-name { font-size: 12.5px; }
    .wcpls-zone-grid { grid-template-columns: 1fr; }
    .wcpls-zone-option { min-height: 58px; }
    .wcpls-summary-card, .wcpls-help-card { border-radius: 13px; }
}

/* v1.1: three editable delivery zones + phone validation */
@media (min-width: 901px) {
    .wcpls-zone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wcpls-zone-option { grid-template-columns: 20px minmax(0,1fr); position: relative; padding-bottom: 34px; }
    .wcpls-zone-price { position: absolute; left: 38px; right: 10px; bottom: 7px; min-width: 0; padding: 6px 0 0; border-left: 0; border-top: 1px solid #e6eaee; display: block; text-align: left; }
}
.wcpls-phone-help { display:block; margin-top:6px; color:#8b96a2; font-size:11px; }
.wcpls-customer-fields > input[aria-invalid="true"] { border-color:#dc3232; box-shadow:0 0 0 3px rgba(220,50,50,.08); }

.wcpls-summary-delivery-label { min-width:0; line-height:1.35; padding-right:8px; }

/* v2.2.0: mobile-only selected product quick-order bar */
.wcpls-mobile-order-bar { display: none; }

@media (max-width: 767px) {
    .wcpls-shell { padding-bottom: 104px; }

    .wcpls-mobile-order-bar {
        position: fixed;
        z-index: 9998;
        left: max(8px, env(safe-area-inset-left));
        right: max(8px, env(safe-area-inset-right));
        bottom: max(8px, env(safe-area-inset-bottom));
        min-height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 9px;
        background: #fff;
        border: 1px solid color-mix(in srgb, var(--wcpls-primary) 24%, #e2e8e5);
        border-radius: 14px;
        box-shadow: 0 10px 32px rgba(20, 35, 30, .18);
    }

    .wcpls-mobile-order-product {
        min-width: 0;
        flex: 1 1 auto;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
    }

    .wcpls-mobile-order-image {
        width: 44px;
        height: 44px;
        object-fit: contain;
        padding: 4px;
        background: #fff;
        border: 1px solid #e6ece9;
        border-radius: 9px;
    }

    .wcpls-mobile-order-copy {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 1px;
        line-height: 1.2;
    }

    .wcpls-mobile-order-name {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #17332a;
        font-size: 12px;
        font-weight: 700;
    }

    .wcpls-mobile-order-price {
        display: block;
        color: var(--wcpls-primary);
        font-size: 17px;
        font-weight: 800;
        white-space: nowrap;
    }

    .wcpls-mobile-order-button {
        flex: 0 0 auto;
        min-height: 43px;
        padding: 0 18px;
        border: 0;
        border-radius: 999px;
        background: var(--wcpls-primary);
        color: #fff;
        font: inherit;
        font-size: 13px;
        font-weight: 800;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 5px 12px color-mix(in srgb, var(--wcpls-primary) 20%, transparent);
    }

    .wcpls-mobile-order-button:active { transform: translateY(1px); }
    .wcpls-customer-fields { scroll-margin-top: 20px; }
}

@media (max-width: 380px) {
    .wcpls-mobile-order-bar { gap: 7px; padding: 7px; }
    .wcpls-mobile-order-product { grid-template-columns: 40px minmax(0,1fr); gap: 6px; }
    .wcpls-mobile-order-image { width: 40px; height: 40px; }
    .wcpls-mobile-order-name { font-size: 11px; }
    .wcpls-mobile-order-price { font-size: 15px; }
    .wcpls-mobile-order-button { padding: 0 14px; font-size: 12px; }
}
