/* Order Bump Styles - Compact Design */
#wfc-order-bump-container {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
    margin-bottom: 8px;
}

#wfc-order-bump-container h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #374151;
    font-weight: 600;
    text-align: left;
    text-shadow: none;
}

.wfc-order-bumps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wfc-order-bump-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
    gap: 12px;
}

.wfc-order-bump-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wfc-order-bump-content {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Single row layout - no more nested rows */
.wfc-order-bump-row-one,
.wfc-order-bump-row-two {
    display: contents; /* Flatten the structure */
}

.wfc-order-bump-checkbox {
    flex-shrink: 0;
}

.wfc-order-bump-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #10b981;
}

.wfc-order-bump-image {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.wfc-order-bump-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wfc-order-bump-details,
.wfc-order-bump-title {
    flex: 1;
    min-width: 0;
}

.wfc-order-bump-title label {
    cursor: pointer;
    display: block;
}

.wfc-order-bump-title h4 {
    margin: 0 0 4px 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
}

.wfc-order-bump-desc {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.3;
    margin: 0;
}

.wfc-order-bump-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Compact discount badge */
.wfc-discount-badge {
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    min-width: auto;
}

.wfc-discount-amount {
    font-size: 10px;
    font-weight: 700;
}

.wfc-discount-text {
    display: none; /* Hide "RABATT" text for compactness */
}

.wfc-price-container {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: flex-end;
}

.wfc-original-price,
.wfc-sale-price {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wfc-price-label {
    display: none; /* Hide labels for compactness */
}

.wfc-original-price del {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 400;
}

.wfc-sale-price .price {
    font-size: 16px;
    font-weight: 700;
    color: #059669;
    line-height: 1;
}

.wfc-savings {
    font-size: 10px;
    color: #059669;
    font-weight: 500;
    background: transparent;
    padding: 0;
    margin: 0;
}

.wfc-order-bump-action {
    flex-shrink: 0;
    margin-left: 8px;
}

.wfc-add-to-cart-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.wfc-add-to-cart-btn:hover {
    background: #059669;
    transform: none; /* Remove hover transform for subtlety */
    box-shadow: none;
}

.wfc-btn-icon {
    display: none; /* Hide icon for compactness */
}

/* Added to cart state - more subtle */
.wfc-order-bump-item.added-to-cart {
    border: 1px solid #10b981;
    background: #f0fdf4;
    padding: 12px 16px;
    flex-direction: row; /* Keep horizontal layout */
}

.wfc-order-bump-status {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    color: #065f46;
    margin: 0;
    font-weight: 600;
    font-size: 12px;
    padding: 0;
}

.wfc-added-icon {
    font-size: 14px;
    color: #10b981;
}

.wfc-quantity {
    font-size: 11px;
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    padding: 1px 4px;
    border-radius: 2px;
}

.wfc-order-bump-details-added {
    display: contents; /* Flatten structure */
}

.wfc-order-bump-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wfc-order-bump-info h4 {
    margin: 0;
    color: #065f46;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.wfc-added-benefits {
    display: none; /* Hide for compactness */
}

.wfc-cart-actions {
    flex-shrink: 0;
}

.wfc-remove-from-cart {
    background: #fff;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wfc-remove-from-cart:before {
    content: "×";
    font-size: 12px;
    margin-right: 2px;
}

.wfc-remove-from-cart:hover {
    border-color: #ef4444;
    color: #ef4444;
    background-color: #fef2f2;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    #wfc-order-bump-container {
        padding: 0;
    }
    
    .wfc-order-bump-item {
        flex-wrap: wrap;
        padding: 12px;
    }
    
    .wfc-order-bump-content {
        flex-wrap: wrap;
        flex-grow: 1; /* Allow content to take available space */
    }
    
    .wfc-order-bump-image {
        /* Optional: Hide image on smallest screens if needed */
        /* display: none; */
    }
    
    .wfc-order-bump-title h4 {
        font-size: 13px;
    }
    
    .wfc-order-bump-desc {
        font-size: 11px;
    }
    
    /* Adjust pricing font size */
    .wfc-sale-price .price {
        font-size: 15px;
    }
    
    .wfc-add-to-cart-btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .wfc-discount-badge {
        font-size: 9px;
    }
    
    .wfc-savings {
        font-size: 9px;
    }
}

/* Very compact mobile */
@media (max-width: 480px) {
    .wfc-order-bump-item,
    .wfc-order-bump-item.added-to-cart {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 15px;
    }

    .wfc-order-bump-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    /* First row: Checkbox + Image only */
    .wfc-order-bump-row-one {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        flex-wrap: wrap;
    }

    .wfc-order-bump-checkbox {
        flex-shrink: 0;
        margin-top: 2px;
    }

    .wfc-order-bump-image {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
    }

    /* Product title gets its own full row */
    .wfc-order-bump-title {
        width: 100%;
        order: 1;
        margin-top: 10px;
    }
    
    .wfc-order-bump-title h4 {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 8px;
        word-wrap: break-word;
        hyphens: auto;
        white-space: normal;
    }

    .wfc-order-bump-desc {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 0;
    }

    /* Second row: Pricing + Action button */
    .wfc-order-bump-row-two {
        display: flex;
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .wfc-order-bump-pricing {
        flex: 1;
        display: flex;
        justify-content: flex-start;
        gap: 12px;
        margin-top: 0;
    }

    .wfc-order-bump-action {
        flex-shrink: 0;
    }

    .wfc-add-to-cart-btn {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 140px;
    }

    /* Override any flex ordering on mobile */
    .wfc-order-bump-details,
    .wfc-order-bump-pricing,
    .wfc-order-bump-action {
        order: unset;
    }

    /* Added to cart state adjustments */
    .wfc-order-bump-item.added-to-cart .wfc-order-bump-info {
        display: block;
        width: 100%;
    }
}

/* Remove all animations for subtlety */
@keyframes pulse {
    0%, 100% { transform: none; }
    50% { transform: none; }
}

/* Processing states - more subtle */
.wfc-order-bump-item.wfc-processing {
    opacity: 0.6;
    pointer-events: none;
}

.wfc-order-bump-item.wfc-processing::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 14px;
    height: 14px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notice styles - more subtle */
.wfc-order-bump-notice {
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 13px;
    border-left: 3px solid;
}

.wfc-notice-success {
    background-color: #f0fdf4;
    border-left-color: #10b981;
    color: #065f46;
}

.wfc-notice-error {
    background-color: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

/* Accessibility improvements */
.wfc-order-bump-checkbox input[type="checkbox"]:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
}

/* Print styles */
@media print {
    #wfc-order-bump-container {
        display: none;
    }
} 