/* ============================================================
   LOMOBEE CART + CHECKOUT
   Classic WooCommerce shortcode templates
   ============================================================ */

.lomo-checkout-active {
    --lomo-red: #c83632;
    --lomo-red-dark: #8B1F1C;
    --lomo-ink: #4B3824;
    --lomo-soft: #6A5132;
    --lomo-gold: #B88746;
    --lomo-gold-dark: #8C6634;
    --lomo-cream-deep: #EFE2CF;
    --lomo-muted: #7A6F68;
    --lomo-faint: #B5ADA7;
    --lomo-bg: #F7F3EE;
    --lomo-panel: #fff;
    --lomo-surface: #FAF8F5;
    --lomo-border: #E2D9CF;
    --lomo-border-strong: #C8BDB2;
    --lomo-shadow: 0 22px 60px rgba(75,56,36,.12);
}

.lomo-checkout-active .entry-title,
.lomo-checkout-active .woocommerce > h2:first-child { display: none; }

.lomo-checkout-active #main-content .container,
.lomo-checkout-active .container,
.lomo-checkout-active .et_pb_row,
.lomo-checkout-active .et-l--post .et_pb_row,
.lomo-checkout-active .woocommerce {
    width: min(80vw, 1280px) !important;
    max-width: 1280px !important;
}

.lomo-checkout-active .entry-content,
.lomo-checkout-active .woocommerce,
.lomo-checkout-active .woocommerce-cart-form {
    overflow: visible;
}

.lomo-checkout-shell {
    width: min(80vw, 1280px);
    max-width: 1280px;
    margin: 42px auto 72px;
    padding: 34px;
    border: 1px solid var(--lomo-border);
    border-radius: 8px;
    background: var(--lomo-surface);
    box-shadow: var(--lomo-shadow);
    color: var(--lomo-ink);
}

.lomo-checkout-shell *,
.lomo-checkout-shell *::before,
.lomo-checkout-shell *::after { box-sizing: border-box; }

.lomo-checkout-shell svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lomo-flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 86px;
    margin-bottom: 32px;
    padding: 18px 24px;
    border: 1px solid var(--lomo-border);
    border-radius: 8px;
    background: linear-gradient(135deg, #FFFDF8, var(--lomo-cream-deep));
}

.lomo-flow-step {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--lomo-muted);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
}

.lomo-flow-step.is-active,
.lomo-flow-step.is-done { color: var(--lomo-ink); }

.lomo-flow-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--lomo-border-strong);
    background: #fff;
    color: var(--lomo-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lomo-flow-icon svg { width: 19px; height: 19px; }
.lomo-flow-step.is-active .lomo-flow-icon {
    border-color: var(--lomo-gold);
    background: var(--lomo-gold);
    color: #fff;
}
.lomo-flow-step.is-done .lomo-flow-icon {
    border-color: var(--lomo-red);
    background: var(--lomo-red);
    color: #fff;
}

.lomo-flow-line {
    width: min(130px, 10vw);
    border-top: 1px dashed var(--lomo-border-strong);
}
.lomo-flow-line.is-done { border-top-color: var(--lomo-red); }

.lomo-cart-grid,
.lomo-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
}

.lomo-panel {
    border: 1px solid var(--lomo-border);
    border-radius: 8px;
    background: var(--lomo-panel);
}

.lomo-cart-items,
.lomo-checkout-fields { padding: 32px; }

.lomo-cart-summary,
.lomo-checkout-summary {
    position: sticky;
    top: 28px;
    padding: 30px;
    background: linear-gradient(180deg, #FFF9EF 0%, #EEDDC3 100%);
    color: var(--lomo-ink);
}

.lomo-checkout-summary { background: #fff; color: var(--lomo-ink); }

.lomo-section-head,
.lomo-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.lomo-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--lomo-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1;
    text-transform: uppercase;
}

.lomo-cart-summary .lomo-eyebrow { color: var(--lomo-muted); }

.lomo-section-head h1,
.lomo-summary-head h2,
.lomo-checkout-block h2 {
    margin: 0;
    color: inherit;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.lomo-summary-head h2 { font-size: 24px; }
.lomo-checkout-block h2 {
    margin-bottom: 18px;
    font-size: 18px;
}

.lomo-checkout-shell .woocommerce-billing-fields > h3,
.lomo-checkout-shell .woocommerce-additional-fields > h3 {
    display: none;
}

.lomo-soft-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid var(--lomo-border);
    border-radius: 999px;
    color: var(--lomo-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.lomo-soft-link svg { width: 14px; height: 14px; }
.lomo-soft-link:hover { border-color: var(--lomo-red); color: var(--lomo-red); }

.lomo-cart-head {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 136px 118px;
    gap: 18px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--lomo-border);
    color: var(--lomo-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.lomo-cart-list { display: flex; flex-direction: column; }

.lomo-cart-row {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) 136px 118px;
    gap: 18px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--lomo-border);
}

.lomo-cart-product {
    display: grid;
    grid-template-columns: 34px 92px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
}

.lomo-cart-remove {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lomo-border);
    border-radius: 999px;
    color: var(--lomo-red);
    text-decoration: none;
}

.lomo-cart-remove svg { width: 16px; height: 16px; }
.lomo-cart-remove:hover { border-color: var(--lomo-red); background: var(--lomo-red); color: #fff; }

.lomo-cart-thumb {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--lomo-border);
    border-radius: 8px;
    background: var(--lomo-surface);
}

.lomo-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lomo-cart-copy { min-width: 0; }
.lomo-cart-copy h2 {
    margin: 0 0 7px;
    color: var(--lomo-ink);
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.28 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
}
.lomo-cart-copy h2 a { color: inherit; text-decoration: none; }
.lomo-cart-meta,
.lomo-cart-meta p,
.lomo-cart-meta dl,
.lomo-cart-meta dd,
.lomo-cart-meta dt {
    margin: 0;
    color: var(--lomo-muted);
    font-size: 12px;
    line-height: 1.45;
}
.lomo-mobile-price { display: none; }

.lomo-cart-quantity .quantity,
.lomo-checkout-shell .quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    width: 112px;
    min-width: 112px;
    border: 1px solid var(--lomo-border);
    border-radius: 999px;
    background: var(--lomo-surface);
    overflow: hidden;
}

.lomo-cart-quantity {
    justify-self: center;
    min-width: 0;
}

.lomo-checkout-shell .quantity .qty {
    width: 42px !important;
    height: 36px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: var(--lomo-ink);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    appearance: textfield;
}

.lomo-checkout-shell .quantity .qty::-webkit-outer-spin-button,
.lomo-checkout-shell .quantity .qty::-webkit-inner-spin-button { appearance: none; margin: 0; }

.lomo-qty-btn {
    width: 34px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--lomo-ink);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.lomo-qty-btn:hover { color: var(--lomo-red); }

.lomo-cart-total {
    color: var(--lomo-ink);
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

.lomo-cart-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding-top: 24px;
    width: 100%;
    min-width: 0;
}

.lomo-coupon-inline {
    display: flex;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--lomo-border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--lomo-surface);
}

.lomo-coupon-inline input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    padding: 0 18px !important;
    min-height: 46px;
}

.lomo-coupon-inline .button,
.lomo-update-cart,
.lomo-checkout-shell button.button,
.lomo-checkout-shell a.button,
.lomo-checkout-shell #place_order {
    min-height: 46px;
    border: 1px solid var(--lomo-red) !important;
    border-radius: 0 !important;
    background: var(--lomo-red) !important;
    color: #fff !important;
    padding: 0 22px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .14em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer;
}

.lomo-update-cart {
    border-radius: 999px !important;
    background: var(--lomo-gold) !important;
    border-color: var(--lomo-gold) !important;
    min-width: 142px;
    white-space: normal;
}

.lomo-update-cart:disabled {
    display: none !important;
}

.lomo-checkout-shell button.button:hover,
.lomo-checkout-shell a.button:hover,
.lomo-checkout-shell #place_order:hover { background: var(--lomo-red-dark) !important; border-color: var(--lomo-red-dark) !important; }

.lomo-free-ship {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid rgba(184,135,70,.28);
    border-radius: 8px;
    background: rgba(255,255,255,.45);
}

.lomo-checkout-summary .lomo-free-ship {
    border-color: var(--lomo-border);
    background: var(--lomo-surface);
}

.lomo-free-ship-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.lomo-free-ship-top strong { color: var(--lomo-red); }
.lomo-cart-summary .lomo-free-ship-top strong { color: var(--lomo-ink); }

.lomo-free-ship-track {
    height: 6px;
    margin: 12px 0 9px;
    border-radius: 999px;
    background: rgba(184,135,70,.18);
    overflow: hidden;
}

.lomo-checkout-summary .lomo-free-ship-track { background: #E9E1D7; }

.lomo-free-ship-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--lomo-gold);
}

.lomo-free-ship p {
    margin: 0;
    color: var(--lomo-muted);
    font-size: 12px;
}

.lomo-checkout-summary .lomo-free-ship p { color: var(--lomo-muted); }

.lomo-summary-lines {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lomo-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(184,135,70,.24);
    color: var(--lomo-muted);
    font-size: 14px;
}

.lomo-checkout-summary .lomo-summary-line { border-bottom-color: var(--lomo-border); color: var(--lomo-muted); }

.lomo-summary-line strong,
.lomo-summary-line .amount {
    color: inherit;
    font-size: 15px;
    font-weight: 700;
}

.lomo-summary-total {
    margin-top: 8px;
    border-bottom: 0;
    color: var(--lomo-ink);
}

.lomo-checkout-summary .lomo-summary-total { color: var(--lomo-ink); }

.lomo-summary-total span,
.lomo-summary-total strong,
.lomo-summary-total .amount {
    color: inherit;
    font-size: 22px;
    font-weight: 800;
}

.lomo-summary-shipping {
    padding: 15px 0;
    border-bottom: 1px solid rgba(184,135,70,.24);
}

.lomo-checkout-summary .lomo-summary-shipping { border-bottom-color: var(--lomo-border); }

.lomo-summary-shipping table,
.lomo-summary-shipping tbody,
.lomo-summary-shipping tr,
.lomo-summary-shipping th,
.lomo-summary-shipping td {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

.lomo-summary-shipping th {
    margin-bottom: 9px;
    color: var(--lomo-muted);
    font-size: 14px;
    font-weight: 400;
}

.lomo-checkout-summary .lomo-summary-shipping th { color: var(--lomo-muted); }
.lomo-summary-shipping ul { margin: 0; padding: 0; list-style: none; }
.lomo-summary-shipping li { margin: 0 0 8px; color: inherit; font-size: 13px; }
.lomo-summary-shipping label { color: inherit; }

.wc-proceed-to-checkout {
    margin-top: 24px;
    padding-top: 0 !important;
}
.wc-proceed-to-checkout a.checkout-button {
    width: 100%;
    min-height: 54px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
}

.wc-proceed-to-checkout a.checkout-button::before,
.wc-proceed-to-checkout a.checkout-button::after,
.lomo-checkout-shell a.checkout-button::before,
.lomo-checkout-shell a.checkout-button::after {
    content: none !important;
    display: none !important;
}

.lomo-summary-trust {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(184,135,70,.24);
}

.lomo-summary-trust div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--lomo-muted);
    font-size: 12px;
}

.lomo-summary-trust svg { width: 17px; height: 17px; color: var(--lomo-red); }

/* Checkout fields */
.lomo-field-group { display: grid; gap: 28px; }
.lomo-checkout-block {
    padding-top: 24px;
    border-top: 1px solid var(--lomo-border);
}

.lomo-checkout-shell .woocommerce-billing-fields__field-wrapper,
.lomo-checkout-shell .woocommerce-shipping-fields__field-wrapper,
.lomo-checkout-shell .woocommerce-additional-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.lomo-checkout-shell .form-row {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.lomo-checkout-shell .form-row-wide,
.lomo-checkout-shell #billing_address_1_field,
.lomo-checkout-shell #billing_address_2_field,
.lomo-checkout-shell #shipping_address_1_field,
.lomo-checkout-shell #shipping_address_2_field,
.lomo-checkout-shell #order_comments_field { grid-column: 1 / -1; }

.lomo-checkout-shell label {
    display: block;
    margin-bottom: 7px;
    color: var(--lomo-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
}

.lomo-checkout-shell .required { color: var(--lomo-red); }

.lomo-checkout-shell input.input-text,
.lomo-checkout-shell textarea,
.lomo-checkout-shell select,
.lomo-checkout-shell .select2-container--default .select2-selection--single {
    min-height: 52px;
    width: 100%;
    border: 1px solid var(--lomo-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--lomo-ink) !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

.lomo-checkout-shell textarea {
    min-height: 110px;
    resize: vertical;
}

.lomo-checkout-shell input:focus,
.lomo-checkout-shell textarea:focus,
.lomo-checkout-shell select:focus,
.lomo-checkout-shell .select2-container--open .select2-selection--single {
    border-color: var(--lomo-red) !important;
    outline: none !important;
}

.lomo-checkout-shell .select2-selection__rendered {
    padding-left: 0 !important;
    line-height: 26px !important;
}

.lomo-checkout-shell .select2-selection__arrow { top: 13px !important; right: 12px !important; }

.lomo-checkout-shell .woocommerce-form__label-for-checkbox,
.lomo-checkout-shell .woocommerce-shipping-fields label.checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.lomo-checkout-shell input[type="checkbox"],
.lomo-checkout-shell input[type="radio"] {
    accent-color: var(--lomo-red);
}

.lomo-checkout-shell #ship-to-different-address {
    margin: 0 0 18px;
    font-size: 15px;
}

.lomo-checkout-shell #ship-to-different-address label { margin: 0; }

.lomo-review-products {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.lomo-review-product {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.lomo-review-thumb {
    position: relative;
    width: 68px;
    height: 68px;
    border: 1px solid var(--lomo-border);
    border-radius: 8px;
    background: var(--lomo-surface);
}

.lomo-review-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.lomo-review-thumb span {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--lomo-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
}

.lomo-review-copy strong {
    display: block;
    color: var(--lomo-ink);
    font-size: 14px;
    line-height: 1.25;
}

.lomo-review-copy small,
.lomo-review-copy small p,
.lomo-review-copy small dl { color: var(--lomo-muted); font-size: 11px; margin: 4px 0 0; }

.lomo-review-total {
    color: var(--lomo-ink);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.lomo-checkout-shell .woocommerce-checkout-payment {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--lomo-border);
    background: transparent !important;
}

.lomo-checkout-shell #payment ul.payment_methods {
    padding: 0 0 16px !important;
    border-bottom: 1px solid var(--lomo-border) !important;
}

.lomo-checkout-shell #payment ul.payment_methods li {
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--lomo-border);
}

.lomo-checkout-shell #payment ul.payment_methods li:last-child { border-bottom: 0; }
.lomo-checkout-shell #payment div.payment_box {
    margin: 10px 0 0 !important;
    border-radius: 8px !important;
    background: var(--lomo-surface) !important;
    color: var(--lomo-muted) !important;
}

.lomo-checkout-shell .place-order { padding: 16px 0 0 !important; }
.lomo-checkout-shell #place_order {
    width: 100%;
    min-height: 56px;
    border-radius: 8px !important;
}

.lomo-checkout-shell .woocommerce-terms-and-conditions-wrapper {
    color: var(--lomo-muted);
    font-size: 12px;
    line-height: 1.6;
}

.lomo-checkout-shell .woocommerce-terms-and-conditions-wrapper a {
    color: var(--lomo-gold-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lomo-checkout-shell .lomo-privacy-consent-row,
.lomo-checkout-shell .woocommerce-terms-and-conditions-wrapper .validate-required {
    margin-top: 12px !important;
    padding: 13px 14px !important;
    border: 1px solid var(--lomo-border);
    border-radius: 8px;
    background: var(--lomo-surface);
}

.lomo-checkout-shell .lomo-privacy-consent-row label,
.lomo-checkout-shell .woocommerce-terms-and-conditions-checkbox-text {
    color: var(--lomo-soft);
    line-height: 1.45;
}

.lomo-checkout-shell .lomo-pickup-location-field {
    grid-column: 1 / -1;
}

.lomo-local-pickup-checkout #ship-to-different-address,
.lomo-local-pickup-checkout .woocommerce-shipping-fields,
.lomo-local-pickup-checkout #billing_company_field,
.lomo-local-pickup-checkout #billing_country_field,
.lomo-local-pickup-checkout #billing_address_1_field,
.lomo-local-pickup-checkout #billing_address_2_field,
.lomo-local-pickup-checkout #billing_city_field,
.lomo-local-pickup-checkout #billing_state_field,
.lomo-local-pickup-checkout #billing_postcode_field,
.lomo-suriname-checkout #billing_address_2_field,
.lomo-suriname-checkout #billing_postcode_field,
.lomo-suriname-checkout #shipping_address_2_field,
.lomo-suriname-checkout #shipping_postcode_field,
.lomo-checkout-shell .lomo-suriname-hide {
    display: none !important;
}

.lomo-checkout-active .woocommerce-info,
.lomo-checkout-active .woocommerce-message { display: none !important; }

.lomo-checkout-active .woocommerce-notices-wrapper:empty,
.lomo-checkout-active .woocommerce-form-coupon-toggle,
.lomo-checkout-active form.checkout_coupon { display: none !important; }

.lomo-checkout-grid > .woocommerce-NoticeGroup,
.lomo-checkout-grid > .woocommerce-NoticeGroup-checkout,
.lomo-checkout-grid > .woocommerce-error,
.lomo-checkout-grid > .woocommerce-message,
.lomo-checkout-grid > .woocommerce-info {
    grid-column: 1 / -1;
    min-width: 0;
}

.lomo-checkout-active .woocommerce-error {
    position: fixed;
    top: 22px;
    right: 22px;
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    margin: 0 !important;
    padding: 18px 20px 18px 48px !important;
    border: 1px solid var(--lomo-red) !important;
    border-top: 4px solid var(--lomo-red) !important;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(75,56,36,.20);
    color: var(--lomo-ink);
    z-index: 100000;
}

.lomo-checkout-active .woocommerce-error li {
    color: var(--lomo-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.lomo-checkout-active .woocommerce-error::before {
    top: 18px;
    left: 18px;
    color: var(--lomo-red);
}

.lomo-notice-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: var(--lomo-surface);
    color: var(--lomo-muted);
    font-size: 18px;
    line-height: 28px;
    cursor: pointer;
}

.lomo-notice-close:hover {
    background: var(--lomo-red);
    color: #fff;
}

@media (max-width: 1280px) {
    .lomo-checkout-active #main-content .container,
    .lomo-checkout-active .container,
    .lomo-checkout-active .et_pb_row,
    .lomo-checkout-active .et-l--post .et_pb_row,
    .lomo-checkout-active .woocommerce {
        width: min(80vw, 1120px) !important;
        max-width: 1120px !important;
    }
    .lomo-checkout-shell {
        width: min(80vw, 1120px);
        max-width: 1120px;
    }
    .lomo-cart-grid,
    .lomo-checkout-grid { grid-template-columns: minmax(0, 1fr) 360px; }
    .lomo-cart-row,
    .lomo-cart-head { grid-template-columns: minmax(300px, 1fr) 120px 100px; gap: 14px; }
    .lomo-cart-product { grid-template-columns: 30px 78px minmax(0, 1fr); gap: 12px; }
    .lomo-cart-copy h2 { font-size: 14px !important; }
    .lomo-cart-quantity .quantity,
    .lomo-checkout-shell .quantity { width: 104px; min-width: 104px; }
    .lomo-cart-total { font-size: 15px; }
}

@media (max-width: 1080px) and (min-width: 901px) {
    .lomo-checkout-active #main-content .container,
    .lomo-checkout-active .container,
    .lomo-checkout-active .et_pb_row,
    .lomo-checkout-active .et-l--post .et_pb_row,
    .lomo-checkout-active .woocommerce {
        width: 82vw !important;
        max-width: 920px !important;
    }
    .lomo-checkout-shell {
        width: 82vw;
        max-width: 920px;
    }
    .lomo-checkout-shell { padding: 24px; }
    .lomo-cart-grid,
    .lomo-checkout-grid { grid-template-columns: 1fr; }
    .lomo-cart-summary,
    .lomo-checkout-summary {
        position: static;
        width: 100%;
    }
    .lomo-cart-row,
    .lomo-cart-head { grid-template-columns: minmax(0, 1fr) 132px 112px; }
    .lomo-cart-product { grid-template-columns: 32px 86px minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .lomo-checkout-active #main-content .container,
    .lomo-checkout-active .container,
    .lomo-checkout-active .et_pb_row,
    .lomo-checkout-active .et-l--post .et_pb_row,
    .lomo-checkout-active .woocommerce {
        width: 95vw !important;
        max-width: 95vw !important;
    }
    .lomo-checkout-shell {
        width: 95vw;
        max-width: 95vw;
        margin: 24px auto 46px;
        padding: 18px;
    }

    .lomo-flow-steps {
        gap: 10px;
        min-height: 72px;
        padding: 14px;
    }

    .lomo-flow-step {
        flex-direction: column;
        gap: 7px;
        font-size: 10px;
        text-align: center;
    }

    .lomo-flow-icon { width: 36px; height: 36px; }
    .lomo-flow-line { flex: 1; width: auto; min-width: 18px; }

    .lomo-cart-grid,
    .lomo-checkout-grid {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .lomo-cart-summary,
    .lomo-checkout-summary {
        position: static;
        width: 100%;
    }

    .lomo-cart-items,
    .lomo-checkout-fields,
    .lomo-cart-summary,
    .lomo-checkout-summary { padding: 22px; }

    .lomo-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .lomo-cart-head { display: none; }
    .lomo-cart-row {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 0;
    }

    .lomo-cart-product {
        grid-template-columns: 30px 82px minmax(0, 1fr);
        align-items: start;
    }

    .lomo-cart-total {
        display: flex;
        justify-content: space-between;
        text-align: left;
    }

    .lomo-cart-total::before {
        content: 'Total';
        color: var(--lomo-muted);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .14em;
        text-transform: uppercase;
    }

    .lomo-cart-actions {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .lomo-coupon-inline { width: 100%; }
    .lomo-update-cart { width: 100%; }

    .lomo-checkout-shell .woocommerce-billing-fields__field-wrapper,
    .lomo-checkout-shell .woocommerce-shipping-fields__field-wrapper,
    .lomo-checkout-shell .woocommerce-additional-fields__field-wrapper {
        grid-template-columns: 1fr;
    }

    .lomo-payment-shell .lomo-checkout-fields {
        width: 100%;
        max-width: 640px;
        margin-inline: auto;
    }

    .lomo-payment-shell .lomo-field-group,
    .lomo-payment-shell .woocommerce-billing-fields,
    .lomo-payment-shell .woocommerce-shipping-fields,
    .lomo-payment-shell .woocommerce-additional-fields,
    .lomo-payment-shell .woocommerce-billing-fields__field-wrapper,
    .lomo-payment-shell .woocommerce-shipping-fields__field-wrapper,
    .lomo-payment-shell .woocommerce-additional-fields__field-wrapper {
        width: 100%;
        margin-inline: auto;
    }
}

@media (max-width: 560px) {
    .lomo-checkout-shell {
        width: 95vw;
        max-width: 95vw;
        margin: 0 auto 36px;
        padding: 10px;
        border-radius: 8px;
        box-shadow: none;
    }

    .lomo-flow-steps {
        min-height: 58px;
        margin-bottom: 14px;
        border-radius: 8px;
        padding: 10px;
    }
    .lomo-flow-icon { width: 30px; height: 30px; }
    .lomo-flow-icon svg { width: 15px; height: 15px; }
    .lomo-flow-step span:last-child { display: none; }

    .lomo-section-head h1 { font-size: 22px !important; }
    .lomo-summary-head h2 { font-size: 21px !important; }
    .lomo-eyebrow { font-size: 9px; letter-spacing: .14em; }
    .lomo-cart-items,
    .lomo-checkout-fields,
    .lomo-cart-summary,
    .lomo-checkout-summary { padding: 16px; }

    .lomo-payment-shell .lomo-checkout-fields {
        padding-inline: 16px;
    }

    .lomo-payment-shell .lomo-checkout-block,
    .lomo-payment-shell .woocommerce-billing-fields,
    .lomo-payment-shell .woocommerce-shipping-fields,
    .lomo-payment-shell .woocommerce-additional-fields {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
    }

    .lomo-checkout-shell input.input-text,
    .lomo-checkout-shell textarea,
    .lomo-checkout-shell select,
    .lomo-checkout-shell .select2-container--default .select2-selection--single {
        min-height: 48px;
        font-size: 14px !important;
    }

    .lomo-cart-product {
        grid-template-columns: 28px 64px minmax(0, 1fr);
        gap: 10px;
    }

    .lomo-cart-thumb { border-radius: 6px; }
    .lomo-cart-copy h2 { font-size: 13px !important; }
    .lomo-cart-meta,
    .lomo-cart-meta p,
    .lomo-cart-meta dl,
    .lomo-cart-meta dd,
    .lomo-cart-meta dt { font-size: 11px; }
    .lomo-cart-quantity .quantity,
    .lomo-checkout-shell .quantity {
        width: 96px;
        min-width: 96px;
        height: 34px;
    }
    .lomo-checkout-shell .quantity .qty {
        width: 34px !important;
        height: 32px;
        font-size: 13px;
    }
    .lomo-qty-btn {
        width: 30px;
        height: 32px;
        font-size: 16px;
    }
    .lomo-cart-total,
    .lomo-summary-total span,
    .lomo-summary-total strong,
    .lomo-summary-total .amount { font-size: 18px; }

    .lomo-coupon-inline {
        border-radius: 8px;
        flex-direction: column;
    }

    .lomo-coupon-inline .button { min-height: 44px; }

    .lomo-review-product {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .lomo-review-thumb { width: 58px; height: 58px; }
    .lomo-review-total { grid-column: 2; }

    .lomo-checkout-active .woocommerce-error {
        top: auto;
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        max-height: 48vh;
        padding: 16px 44px 16px 42px !important;
        border-radius: 8px;
    }

    .lomo-notice-close {
        top: 8px;
        right: 8px;
    }
}

/* ============================================================
   MOBILE ORDER SUMMARY ACCORDION
   Toggle bar visible on mobile only. Product list collapses.
   Place Order / totals always remain visible below.
   ============================================================ */

/* --- Toggle button --- */
.lomo-order-toggle {
    display: none; /* hidden on desktop */
}

@media (max-width: 900px) {
    /* Show toggle bar on mobile */
    .lomo-order-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 13px 0 15px;
        margin-bottom: 0;
        border: 0;
        border-bottom: 1px solid var(--lomo-border);
        background: transparent;
        color: var(--lomo-ink);
        cursor: pointer;
        text-align: left;
        gap: 10px;
    }

    .lomo-order-toggle-left {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 700;
        color: var(--lomo-ink);
    }

    .lomo-order-toggle-left svg:first-child {
        color: var(--lomo-red);
        flex-shrink: 0;
    }

    .lomo-order-toggle-chevron {
        color: var(--lomo-muted);
        transition: transform 260ms ease;
        flex-shrink: 0;
    }

    .lomo-order-toggle[aria-expanded="true"] .lomo-order-toggle-chevron {
        transform: rotate(180deg);
    }

    .lomo-order-toggle-total {
        font-size: 15px;
        font-weight: 800;
        color: var(--lomo-ink);
        white-space: nowrap;
        flex-shrink: 0;
        margin-left: auto;
    }

    .lomo-order-toggle-total .woocommerce-Price-amount {
        color: inherit;
    }

    /* Product list — collapsed by default on mobile */
    .lomo-review-products {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        margin-bottom: 0;
        transition: max-height 320ms ease, opacity 260ms ease;
    }

    /* Open state — JS adds this class */
    .lomo-review-products.lomo-products-open {
        max-height: 2000px;
        opacity: 1;
        margin-bottom: 18px;
    }

    /* Totals always visible — give top spacing */
    .lomo-summary-lines {
        margin-top: 4px;
    }
}
