/**
 * Growup Business - Fast Checkout & Order Bump Stylesheet (CartFlows Pro Style).
 *
 * Ultra-high-converting, responsive 1-page checkout funnel with sticky order summary,
 * multi-variation badges, dynamic order bump, coupon drawer, and mobile floating bar.
 *
 * @package GrowupBusiness
 */

:root {
    --growup-primary: #16a34a;
    --growup-primary-dark: #15803d;
    --growup-primary-light: #f0fdf4;
    --growup-border: #e2e8f0;
    --growup-text-main: #0f172a;
    --growup-text-muted: #64748b;
    --growup-accent: #f59e0b;
}

.growup-fast-checkout-container {
    max-width: 1020px;
    margin: 35px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--growup-text-main);
    box-sizing: border-box;
}

.growup-fast-checkout-container * {
    box-sizing: border-box;
}

/* Trust Bar / Header */
.growup-fc-trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--growup-border);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 20px;
    text-align: center;
}

.growup-fc-trust-item {
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Main Card */
.growup-fc-card {
    background: #ffffff;
    border: 1px solid var(--growup-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.growup-fc-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.growup-fc-icon {
    font-size: 32px;
}

.growup-fc-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.growup-fc-header-sub {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #94a3b8;
}

/* Grid Layouts */
.growup-fc-layout-2col .growup-fc-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    padding: 30px;
    align-items: start;
}

.growup-fc-layout-1col .growup-fc-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 650px;
    margin: 0 auto;
    gap: 28px;
    padding: 30px 20px;
}

/* Sticky Column for Desktop */
@media (min-width: 860px) {
    .growup-fc-layout-2col .growup-fc-col-right {
        position: sticky;
        top: 24px;
    }
}

/* Step Title */
.growup-fc-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.growup-step-num {
    background: #0f172a;
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.growup-fc-step-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

/* Form Groups & Inputs */
.growup-fc-form-group {
    margin-bottom: 18px;
}

.growup-fc-form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #334155;
}

.growup-fc-form-group .required {
    color: #ef4444;
}

.growup-fc-input,
.growup-fc-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14.5px;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.2s ease;
}

.growup-fc-input:focus,
.growup-fc-textarea:focus {
    border-color: #2563eb;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.growup-fc-phone-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.growup-fc-country-flag {
    position: absolute;
    left: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    pointer-events: none;
}

.growup-fc-phone-field {
    padding-left: 78px !important;
    letter-spacing: 0.5px;
}

.growup-fc-phone-hint {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    margin-top: 5px;
}

/* Shipping Area Radio Cards */
.growup-fc-shipping-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.growup-fc-radio-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.growup-fc-radio-card input[type="radio"] {
    display: none;
}

.growup-fc-radio-content {
    display: flex;
    flex-direction: column;
}

.growup-fc-radio-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.growup-fc-radio-sub {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}

.growup-radio-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all 0.2s ease;
}

.growup-fc-radio-card.active {
    border-color: #2563eb;
    background: #eff6ff;
}

.growup-fc-radio-card.active .growup-fc-radio-title {
    color: #1d4ed8;
}

.growup-fc-radio-card.active .growup-radio-check {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Payment Reassurance Box */
.growup-fc-payment-box {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 18px;
}

.growup-fc-payment-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.growup-fc-cod-icon {
    font-size: 24px;
}

.growup-fc-payment-header strong {
    font-size: 13.5px;
    color: #166534;
    display: block;
}

.growup-fc-payment-header p {
    margin: 3px 0 0 0;
    font-size: 12px;
    color: #15803d;
    line-height: 1.4;
}

/* Product Overview Card in Summary */
.growup-fc-product-summary {
    display: flex;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid var(--growup-border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
}

.growup-fc-prod-img-wrap {
    position: relative;
    flex-shrink: 0;
}

.growup-fc-prod-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.growup-fc-discount-tag {
    position: absolute;
    top: -6px;
    left: -6px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.growup-fc-prod-meta {
    flex: 1;
}

.growup-fc-prod-title {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.growup-fc-prod-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.growup-fc-reg-price {
    font-size: 13px;
    color: #94a3b8;
}

.growup-fc-active-price {
    font-size: 16px;
    font-weight: 800;
    color: #2563eb;
}

/* Variations Pills */
.growup-fc-variations-wrap {
    margin: 10px 0;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
}

.growup-fc-variation-group {
    margin-bottom: 8px;
}

.growup-fc-var-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}

.growup-fc-var-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.growup-fc-var-pill {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: #334155;
    transition: all 0.15s ease;
}

.growup-fc-var-pill:hover {
    border-color: #94a3b8;
}

.growup-fc-var-pill.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

/* Quantity Controls */
.growup-fc-qty-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

.growup-fc-qty-ctrl {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.growup-fc-qty-btn {
    border: none;
    background: #f1f5f9;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
    color: #334155;
    transition: background 0.15s ease;
}

.growup-fc-qty-btn:hover {
    background: #e2e8f0;
}

.growup-fc-qty-ctrl input {
    width: 38px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    background: transparent;
}

/* Tiered Package Bundles (CartFlows Pro Style) */
.growup-fc-packages-wrap {
    margin: 12px 0 6px;
}

.growup-fc-package-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.growup-fc-packages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.growup-fc-pkg-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.growup-fc-pkg-card input[type="radio"] {
    display: none;
}

.growup-pkg-info strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
}

.growup-pkg-info span {
    font-size: 11px;
    color: #64748b;
}

.growup-pkg-badge {
    background: #fee2e2;
    color: #dc2626;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 4px;
}

.growup-pkg-price {
    font-size: 14px;
    font-weight: 800;
    color: #16a34a;
}

.growup-fc-pkg-card.active {
    border-color: #16a34a;
    background: #f0fdf4;
}

/* CARTFLOWS PRO ORDER BUMP BOX */
.growup-order-bump-box.growup-bump-pro {
    margin: 18px 0;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px dashed #f59e0b;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
    transition: all 0.25s ease;
    position: relative;
}

.growup-order-bump-box.growup-bump-pro.checked {
    background: #fef3c7;
    border-color: #d97706;
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.2);
}

.growup-bump-top-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12.5px;
    font-weight: 800;
    color: #b45309;
}

.growup-bump-arrow-pulse {
    animation: bounceRight 1.2s infinite ease-in-out;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.growup-bump-save-tag {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    margin-left: auto;
}

.growup-bump-header {
    margin-bottom: 10px;
}

.growup-bump-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 800;
    color: #78350f;
}

.growup-bump-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #d97706;
    cursor: pointer;
}

.growup-bump-content {
    display: flex;
    gap: 14px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed rgba(217, 119, 6, 0.3);
}

.growup-bump-thumb-wrap {
    flex-shrink: 0;
}

.growup-bump-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid #fde68a;
}

.growup-bump-info {
    flex: 1;
}

.growup-bump-product-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    font-weight: 700;
    color: #78350f;
}

.growup-bump-price-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.growup-bump-reg-price {
    font-size: 12px;
    color: #a16207;
}

.growup-bump-price {
    color: #dc2626;
    font-weight: 800;
    font-size: 14px;
}

.growup-bump-desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: #92400e;
    line-height: 1.4;
}

/* Coupon Drawer */
.growup-fc-coupon-wrap {
    margin: 14px 0;
}

.growup-fc-coupon-toggle {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.growup-fc-coupon-toggle em {
    font-style: normal;
    text-decoration: underline;
}

.growup-fc-coupon-box {
    margin-top: 10px;
    background: #f8fafc;
    border: 1px solid var(--growup-border);
    border-radius: 10px;
    padding: 12px;
}

.growup-fc-coupon-input-group {
    display: flex;
    gap: 8px;
}

.growup-fc-coupon-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
}

.growup-fc-coupon-input-group button {
    padding: 8px 14px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

#growup-fc-coupon-msg {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
}

/* Pricing Table */
.growup-fc-pricing-table {
    background: #f8fafc;
    border: 1px solid var(--growup-border);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.growup-fc-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    margin-bottom: 9px;
    color: #475569;
}

.growup-discount-label {
    color: #16a34a;
    font-weight: 700;
}

.growup-discount-val {
    color: #16a34a;
    font-weight: 800;
}

.growup-fc-divider {
    margin: 12px 0;
    border: 0;
    border-top: 1.5px dashed #cbd5e1;
}

.growup-fc-grand-total-row {
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 0;
}

.growup-fc-grand-total-row strong:last-child {
    color: #16a34a;
    font-size: 20px;
    font-weight: 900;
}

/* Big Submit CTA Button */
.growup-fc-submit-wrap {
    position: relative;
}

.growup-fc-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.growup-fc-submit-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.5);
}

.growup-fc-submit-btn:disabled {
    background: #94a3b8 !important;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.growup-fc-sub-badges {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: #64748b;
}

.growup-fc-error-box {
    margin-top: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* Mobile Sticky Bar (CartFlows Pro Style) */
.growup-fc-mobile-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .growup-fc-trust-bar {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .growup-fc-layout-2col .growup-fc-grid {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        gap: 24px;
    }

    .growup-fc-header {
        padding: 16px 20px;
    }

    .growup-fc-shipping-options {
        grid-template-columns: 1fr;
    }

    /* Floating Sticky Bar */
    .growup-fc-mobile-sticky-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 99999;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
        padding: 10px 16px;
        align-items: center;
        justify-content: space-between;
    }

    .growup-fc-sticky-left {
        display: flex;
        flex-direction: column;
    }

    .growup-sticky-label {
        font-size: 11px;
        color: #64748b;
    }

    .growup-sticky-total {
        font-size: 16px;
        font-weight: 800;
        color: #16a34a;
    }

    .growup-fc-sticky-btn {
        padding: 10px 18px;
        background: #16a34a;
        color: #ffffff;
        border: none;
        border-radius: 8px;
        font-weight: 800;
        font-size: 14px;
        cursor: pointer;
    }
}
