/* Nuts Upsell Modal Styles */
.nuts-upsell-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nuts-upsell-modal-overlay.active {
    opacity: 1;
}

.nuts-upsell-modal-container {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow-y: auto;
    max-height: 90vh;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.nuts-upsell-modal-overlay.active .nuts-upsell-modal-container {
    transform: translateY(0);
}

.nuts-upsell-view {
    padding: 30px;
    text-align: center;
}

.nuts-upsell-header h2 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #333;
}

.nuts-upsell-body p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

.nuts-upsell-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nuts-upsell-cards-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.nuts-upsell-card {
    flex: 1;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nuts-upsell-card-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nuts-upsell-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nuts-upsell-card-content h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #333;
    line-height: 1.3;
}

.nuts-upsell-card-content .nuts-upsell-btn-primary {
    margin-top: auto;
    padding: 10px 15px;
    font-size: 14px;
}

.nuts-upsell-banner-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
    display: block;
}

.nuts-upsell-btn-primary {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
    flex: 1;
    min-width: 150px;
}

.nuts-upsell-btn-primary:hover {
    background: #005177;
    color: #fff;
}

.nuts-upsell-footer {
    margin-top: 15px;
}

.nuts-upsell-link {
    color: #999;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nuts-upsell-link:hover {
    color: #666;
}

/* View 2 specific styles */
.nuts-upsell-banner {
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    padding: 10px 15px;
    margin-bottom: 25px;
    text-align: left;
}

.nuts-upsell-banner p {
    margin: 0;
    font-size: 14px;
    color: #444;
}

.nuts-upsell-bag-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.nuts-upsell-bag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.nuts-upsell-bag-info {
    text-align: left;
}

.nuts-upsell-bag-name {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.nuts-upsell-bag-price {
    font-size: 14px;
}

.nuts-upsell-price-regular {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
}

.nuts-upsell-price-sale {
    color: #d9534f;
    font-weight: bold;
}

/* Quantity Incrementer */
.nuts-upsell-qty {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.nuts-upsell-qty-btn {
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nuts-upsell-qty-btn:hover {
    background: #e9e9e9;
}

.nuts-upsell-qty-input {
    width: 40px;
    height: 30px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    pointer-events: none;
    background: #fff;
    color: #333;
}

/* Spinner */
.nuts-upsell-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: nuts-spin 1s linear infinite;
    margin: 20px auto;
}

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

@media (max-width: 480px) {
    .nuts-upsell-view {
        padding: 20px;
    }
    
    .nuts-upsell-buttons {
        flex-direction: column;
    }

    .nuts-upsell-cards-container {
        flex-direction: column;
    }
    
    .nuts-upsell-bag-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nuts-upsell-qty {
        align-self: flex-start;
    }
}
