/* Organic-style compact landing checkout */
.lp-organic-checkout {
    max-width: 920px;
    margin: 0 auto;
    padding: 16px 12px 32px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.lp-organic-intro {
    text-align: center;
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 14px;
    line-height: 1.5;
}

.lp-organic-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    align-items: start;
}

.lp-organic-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lp-organic-card-head {
    background: #65971e;
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 12px;
    letter-spacing: 0.01em;
}

.lp-organic-card-body {
    padding: 14px;
}

.lp-organic-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 4px;
}

.lp-field {
    margin-bottom: 12px;
}

.lp-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.lp-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lp-input-wrap:focus-within {
    border-color: #5cb85c;
    box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.15);
}

.lp-field-icon {
    width: 36px;
    text-align: center;
    color: #9ca3af;
    flex-shrink: 0;
    font-size: 13px;
}

.lp-input-wrap input,
.lp-input-wrap textarea {
    border: none;
    outline: none;
    width: 100%;
    padding: 9px 10px 9px 0;
    font-size: 13px;
    background: transparent;
}

.lp-input-wrap textarea {
    min-height: 38px;
    resize: vertical;
    padding-top: 9px;
}

.lp-select-wrap {
    align-items: stretch;
}

.lp-select-wrap .select2-container {
    flex: 1;
    min-width: 0;
}

.lp-organic-pay-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin: 14px 0 8px;
}

.lp-organic-checkout .payment-option {
    border: 2px solid #5cb85c;
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: #f0fdf4;
    margin-bottom: 0;
}

.lp-organic-checkout .payment-option input {
    width: 16px;
    height: 16px;
    accent-color: #5cb85c;
}

.lp-organic-checkout .payment-option .pay-title {
    font-weight: 700;
    font-size: 13px;
    margin: 0;
}

/* Order summary */
.lp-organic-variant-wrap {
    margin-bottom: 10px;
}

.lp-organic-checkout .product-variant-picker {
    margin-bottom: 0;
}

.lp-organic-checkout .product-variant-picker label {
    font-size: 11px;
    margin-bottom: 4px;
}

.lp-organic-checkout .product-variant-picker .variant-chip {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
}

.lp-organic-checkout .product-variant-picker .variant-chip.active {
    background: #5cb85c;
    border-color: #5cb85c;
}

.lp-organic-product-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 10px;
}

.lp-organic-product-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.lp-organic-product-info {
    flex: 1;
    min-width: 0;
}

.lp-organic-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 2px;
}

.lp-organic-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #5cb85c;
    margin-bottom: 6px;
}

.lp-organic-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
}

.lp-organic-qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: #f9fafb;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
}

.lp-organic-qty input {
    width: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 0;
    background: #fff;
}

.lp-organic-totals {
    margin-bottom: 12px;
}

.lp-organic-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 6px 0;
    color: #374151;
}

.lp-organic-total-line span:last-child {
    font-weight: 600;
}

.lp-organic-total-final {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    border-top: 1px solid #f3f4f6;
    padding-top: 10px;
    margin-top: 4px;
}

.lp-organic-total-final span:last-child {
    color: #5cb85c;
    font-size: 16px;
}

.lp-organic-discount-row span:last-child {
    color: #dc2626;
    font-weight: 700;
}

.lp-coupon-toggle {
    width: 100%;
    text-align: center;
    border: 1.5px solid var(--lp1-cta-blue, #0d6efd);
    background: #fff;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lp1-cta-blue, #0d6efd);
    margin: 0 0 10px;
    cursor: pointer;
}

.lp-coupon-chevron {
    float: right;
    margin-top: 2px;
    font-size: 11px;
    color: #9ca3af;
}

.lp-coupon-body {
    display: none;
    margin-bottom: 10px;
}

.lp-coupon-body.open {
    display: block;
}

.lp-coupon-input-row {
    display: flex;
    gap: 6px;
}

.lp-coupon-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
}

.lp-coupon-input:focus {
    outline: none;
    border-color: #5cb85c;
    box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.15);
}

.lp-coupon-apply-btn {
    border: 1.5px solid #5cb85c;
    background: #fff;
    color: #5cb85c;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.lp-coupon-apply-btn:hover {
    background: #f0fdf4;
}

.lp-coupon-result {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.4;
}

.lp-coupon-ok {
    color: #15803d;
}

.lp-coupon-err {
    color: #dc2626;
}

.lp-organic-confirm {
    width: 100%;
    background: #65971e;
    border: none;
    color: #fff;
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.lp-organic-confirm:hover {
    background: #527a18;
}

.lp-organic-footnote {
    text-align: center;
    font-size: 10px;
    color: #9ca3af;
    margin: 8px 0 0;
}

/* Order Bump — mobile-first, native checkbox (never hide input) */
.lp-order-bump {
    display: block;
    cursor: pointer;
    margin: 12px 0 14px;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transform: none !important;
}
.lp-order-bump-box {
    display: block;
    border: 2px solid #86efac;
    border-radius: 14px;
    padding: 10px;
    background: #f0fdf4;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.lp-order-bump:hover .lp-order-bump-box {
    border-color: #4ade80;
    box-shadow: 0 4px 14px rgba(22, 163, 74, .12);
}
.lp-order-bump.is-pressing .lp-order-bump-box,
.lp-order-bump:active .lp-order-bump-box {
    border-color: #16a34a;
    box-shadow: 0 2px 8px rgba(22, 163, 74, .1);
}
.lp-order-bump.is-checked .lp-order-bump-box {
    border-color: #16a34a;
    background: #dcfce7;
    box-shadow: 0 6px 18px rgba(22, 163, 74, .14);
}
.lp-order-bump.is-checked:hover .lp-order-bump-box {
    box-shadow: 0 6px 18px rgba(22, 163, 74, .14);
}
#lpOrderBumpMount,
[data-lp-bump-mount] {
    display: block;
    width: 100%;
    max-width: 100%;
}
/* Hide builder-only slots on live storefront */
.lp-order-bump-slot[data-lp-bump-duplicate="1"],
.lp-order-bump-slot[aria-hidden="true"] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}
.lp-order-bump-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1.5px solid #bbf7d0;
}
.lp-order-bump.is-checked .lp-order-bump-action {
    border-color: #16a34a;
    background: #fff;
}
/* Native checkbox — always visible, large for mobile thumbs */
.lp-order-bump-check {
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #16a34a;
    opacity: 1 !important;
    position: static !important;
    clip: auto !important;
    overflow: visible !important;
    pointer-events: auto !important;
    transform: scale(1.15);
    transform-origin: center;
}
.lp-order-bump-action-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lp-order-bump-state {
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    color: #14532d;
}
.lp-order-bump-action-sub {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}
.lp-order-bump-price-chip {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    line-height: 1.15;
}
.lp-order-bump-price-chip del {
    font-size: 11px;
    color: #9ca3af;
}
.lp-order-bump-price-chip em,
.lp-order-bump-price {
    font-style: normal;
    font-size: 17px;
    font-weight: 800;
    color: #16a34a;
}
.lp-order-bump-product {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 4px 2px 2px;
}
.lp-order-bump-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.lp-order-bump-text {
    flex: 1;
    min-width: 0;
}
.lp-order-bump-title {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    color: #14532d;
    margin-bottom: 3px;
}
.lp-order-bump-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 4px;
}
.lp-order-bump-save {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #ef4444;
    border-radius: 999px;
    padding: 2px 8px;
}
/* Legacy class hooks kept for old injected markup */
.lp-order-bump-desc,
.lp-order-bump-footer,
.lp-order-bump-badge,
.lp-order-bump-hint-pill,
.lp-order-bump-tick-text,
.lp-order-bump-tick-ui { display: none !important; }
.lp-order-bump-old { font-size: 11px; color: #9ca3af; }

@media (max-width: 480px) {
    .lp-order-bump-box { padding: 8px; border-radius: 12px; }
    .lp-order-bump-action {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }
    .lp-order-bump-check {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
        transform: scale(1.2);
    }
    .lp-order-bump-action-body { flex: 1 1 calc(100% - 48px); }
    .lp-order-bump-price-chip {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        align-items: baseline;
        gap: 8px;
        padding-top: 2px;
        border-top: 1px dashed #bbf7d0;
    }
    .lp-order-bump-state { font-size: 13px; }
    .lp-order-bump-thumb { width: 52px; height: 52px; }
}

/* Legacy class hooks for builder pages */
.lp-checkout-intro { display: none; }
.lp-billing-title { display: none; }
.lp-order-summary-table { display: none; }
.lp-checkout-footnote { display: none; }

@media (max-width: 768px) {
    .lp-organic-grid {
        grid-template-columns: 1fr;
    }

    .lp-organic-name-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lp-organic-checkout {
        padding: 12px 10px 24px;
    }

    .lp-organic-card-body {
        padding: 12px;
    }

    .lp-input-wrap input,
    .lp-input-wrap textarea,
    .lp-coupon-input {
        font-size: 16px;
    }

    .lp-organic-confirm {
        min-height: 48px;
        font-size: 16px;
        -webkit-tap-highlight-color: transparent;
    }

    .lp-organic-qty-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .lp-organic-qty input {
        width: 40px;
        font-size: 14px;
        padding: 6px 0;
    }

    .lp-coupon-apply-btn {
        min-height: 40px;
        padding: 8px 14px;
    }
}

@media (max-width: 576px) {
    .lp-organic-intro {
        font-size: 12px;
        padding: 0 4px;
    }

    .lp-organic-product-row {
        flex-wrap: wrap;
    }

    .lp-organic-product-img {
        width: 64px;
        height: 64px;
    }

    .lp-organic-product-name {
        font-size: 14px;
    }

    .lp-organic-product-price {
        font-size: 15px;
    }

    .lp-organic-total-line {
        font-size: 14px;
    }

    .lp-organic-total-final {
        font-size: 16px;
    }

    .lp-organic-total-final span:last-child {
        font-size: 18px;
    }

    /* Variant chips — touch-friendly on mobile */
    .lp-organic-checkout .product-variant-picker label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .lp-organic-checkout .product-variant-picker .variant-chips {
        gap: 8px !important;
    }

    .lp-organic-checkout .product-variant-picker .variant-chip {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 8px;
        flex: 0 1 auto;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        line-height: 1.25;
        -webkit-tap-highlight-color: transparent;
    }

    .lp-organic-variant-wrap {
        margin-bottom: 14px;
        padding-bottom: 12px;
        border-bottom: 1px solid #f3f4f6;
    }

    .lp-coupon-input-row {
        flex-direction: column;
    }

    .lp-coupon-apply-btn {
        width: 100%;
    }

    .lp-organic-checkout .payment-option {
        min-height: 48px;
        padding: 12px 14px;
    }
}

/* Unified landing footer */
.lp-unified-footer {
    background: #16a34a;
    color: #fff;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
}

.lp-unified-footer-inner {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.lp-unified-footer a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.lp-unified-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 575px) {
    .lp-unified-footer-inner {
        flex-direction: column;
        text-align: center;
        font-size: 14px;
    }
}
