/* FunnelPro Frontend Styles */
.funnelpro-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Product Grid */
.funnelpro-products-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.funnelpro-product-row {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
    gap: 20px;
}

.funnelpro-product-row:hover {
    border-color: var(--funnelpro-primary, #007cba);
    box-shadow: 0 5px 15px rgba(0, 124, 186, 0.1);
}

.funnelpro-product-row.selected {
    border-color: var(--funnelpro-secondary, #00a32a);
    background: linear-gradient(135deg, rgba(0, 124, 186, 0.05) 0%, rgba(0, 163, 42, 0.05) 100%);
}

/* Product Selector */
.funnelpro-product-selector {
    flex: 0 0 40px;
}

.funnelpro-product-selector input[type="radio"],
.funnelpro-product-selector input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.funnelpro-product-selector input[type="radio"] {
    accent-color: var(--funnelpro-primary, #007cba);
}

.funnelpro-product-selector input[type="checkbox"] {
    accent-color: var(--funnelpro-secondary, #00a32a);
}

/* Product Image */
.funnelpro-product-image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #f1f1f1;
}

/* Product Info */
.funnelpro-product-info {
    flex: 1;
    min-width: 0;
}

.funnelpro-product-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.funnelpro-product-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.funnelpro-product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--funnelpro-secondary, #00a32a);
}

/* Quantity Controls */
.funnelpro-qty-section {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.funnelpro-qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.funnelpro-qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.funnelpro-qty-btn:hover {
    background: #f5f5f5;
    border-color: var(--funnelpro-primary, #007cba);
    color: var(--funnelpro-primary, #007cba);
}

.funnelpro-qty-input {
    width: 60px;
    text-align: center;
    border: 2px solid #e0e0e0;
    padding: 8px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.funnelpro-qty-input:focus {
    outline: none;
    border-color: var(--funnelpro-primary, #007cba);
}

/* Price Display */
.funnelpro-price-display {
    flex: 0 0 120px;
    text-align: right;
}

.funnelpro-price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

/* Checkout Section */
.funnelpro-checkout-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .funnelpro-checkout-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Customer Information */
.funnelpro-customer-info {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.funnelpro-customer-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.funnelpro-customer-title i {
    color: var(--funnelpro-primary, #007cba);
}

/* Form Styles */
.funnelpro-form-group {
    margin-bottom: 20px;
}

.funnelpro-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.funnelpro-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fafafa;
}

.funnelpro-form-control:focus {
    outline: none;
    border-color: var(--funnelpro-primary, #007cba);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.funnelpro-form-control::placeholder {
    color: #95a5a6;
}

/* Payment Methods */
.funnelpro-payment-methods {
    margin: 25px 0;
}

.funnelpro-payment-methods h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc_payment_method {
    margin-bottom: 10px;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
}

.wc_payment_method:hover {
    border-color: var(--funnelpro-primary, #007cba);
    background: #f8fafd;
}

.wc_payment_method.selected {
    border-color: var(--funnelpro-secondary, #00a32a);
    background: #f8fff9;
}

.wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    font-weight: 600;
    color: #2c3e50;
}

.payment_box {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    font-size: 14px;
    color: #666;
}

/* Order Summary */
.funnelpro-order-summary {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.funnelpro-summary-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.funnelpro-summary-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
}

.funnelpro-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.funnelpro-summary-item:last-child {
    border-bottom: none;
}

.funnelpro-summary-product {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.funnelpro-summary-product-name {
    font-weight: 600;
    color: #2c3e50;
}

.funnelpro-summary-product-qty {
    font-size: 13px;
    color: #7f8c8d;
}

.funnelpro-summary-product-price {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.funnelpro-summary-totals {
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.funnelpro-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #666;
}

.funnelpro-summary-row.shipping {
    color: var(--funnelpro-primary, #007cba);
}

.funnelpro-summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 15px;
}

/* Submit Button */
.funnelpro-submit-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 25px;
    background: var(--funnelpro-primary, #007cba);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.funnelpro-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 124, 186, 0.3);
    opacity: 0.95;
}

.funnelpro-submit-btn:active {
    transform: translateY(0);
}

.funnelpro-submit-btn i {
    font-size: 20px;
}

/* Loading State */
.funnelpro-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.funnelpro-loading i {
    font-size: 24px;
    color: var(--funnelpro-primary, #007cba);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.funnelpro-error {
    background: #ffeaea;
    border: 1px solid #ffcccc;
    color: #d63031;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.funnelpro-error i {
    font-size: 18px;
}

.funnelpro-notice {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.funnelpro-form-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Empty Cart State */
.funnelpro-empty-cart {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #7f8c8d;
}

.funnelpro-empty-cart i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #bdc3c7;
}

/* Required Field Indicator */
.funnelpro-required {
    color: #e74c3c;
    margin-left: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .funnelpro-product-row {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .funnelpro-qty-section {
        flex: 1;
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .funnelpro-price-display {
        flex: 0 0 auto;
        text-align: left;
    }
    
    .funnelpro-customer-info,
    .funnelpro-order-summary {
        padding: 20px;
    }
}

/* Shipping Methods */
.funnelpro-shipping-methods {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.funnelpro-shipping-methods h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.funnelpro-shipping-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
}

.funnelpro-shipping-method.active {
    border-color: var(--funnelpro-primary, #007cba);
}

.funnelpro-shipping-info {
    flex: 1;
}

.funnelpro-shipping-title {
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.funnelpro-shipping-desc {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 3px;
}

.funnelpro-shipping-charge {
    font-weight: 700;
    color: var(--funnelpro-secondary, #00a32a);
    font-size: 18px;
}